Re: [PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement
On Wed, Feb 22, 2017 at 08:23:17PM +0200, Georgios Emmanouil wrote: > Coding style issue. Added brances to the 'if' statement. > > Signed-off-by: Georgios Emmanouil> --- > drivers/staging/xgifb/XGI_main_26.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Someone sent this same change in just before you did, sorry :( greg k-h
Re: [PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement
On Wed, Feb 22, 2017 at 08:23:17PM +0200, Georgios Emmanouil wrote: > Coding style issue. Added brances to the 'if' statement. > > Signed-off-by: Georgios Emmanouil > --- > drivers/staging/xgifb/XGI_main_26.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Someone sent this same change in just before you did, sorry :( greg k-h
[PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement
Coding style issue. Added brances to the 'if' statement. Signed-off-by: Georgios Emmanouil--- drivers/staging/xgifb/XGI_main_26.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index 6930f7e..c4fdc1c 100644 --- a/drivers/staging/xgifb/XGI_main_26.c +++ b/drivers/staging/xgifb/XGI_main_26.c @@ -1480,9 +1480,9 @@ static void XGIfb_detect_VB(struct xgifb_video_info *xgifb_info) cr32 = xgifb_reg_get(XGICR, IND_XGI_SCRATCH_REG_CR32); - if ((cr32 & SIS_CRT1) && !XGIfb_crt1off) + if ((cr32 & SIS_CRT1) && !XGIfb_crt1off) { XGIfb_crt1off = 0; - else { + } else { if (cr32 & 0x5F) XGIfb_crt1off = 1; else -- 2.1.4
[PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement
Coding style issue. Added brances to the 'if' statement. Signed-off-by: Georgios Emmanouil --- drivers/staging/xgifb/XGI_main_26.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index 6930f7e..c4fdc1c 100644 --- a/drivers/staging/xgifb/XGI_main_26.c +++ b/drivers/staging/xgifb/XGI_main_26.c @@ -1480,9 +1480,9 @@ static void XGIfb_detect_VB(struct xgifb_video_info *xgifb_info) cr32 = xgifb_reg_get(XGICR, IND_XGI_SCRATCH_REG_CR32); - if ((cr32 & SIS_CRT1) && !XGIfb_crt1off) + if ((cr32 & SIS_CRT1) && !XGIfb_crt1off) { XGIfb_crt1off = 0; - else { + } else { if (cr32 & 0x5F) XGIfb_crt1off = 1; else -- 2.1.4