[OPW,kernel,v2,1/1] Staging: xgifb: braces {} are not necessary for single statement in vb_setmode
diff mbox

Message ID 1381173928-4397-1-git-send-email-ebru.akagunduz@gmail.com
State Accepted
Headers show

Commit Message

Ebru Akagündüz Oct. 7, 2013, 7:25 p.m. UTC
Fix checkpatch.pl issues with braces {} are not necessary
for single statement blocks in vb_setmode.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/xgifb/vb_setmode.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Josh Triplett Oct. 7, 2013, 7:35 p.m. UTC | #1
On Mon, Oct 07, 2013 at 10:25:28PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with braces {} are not necessary
> for single statement blocks in vb_setmode.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

> ---
>  drivers/staging/xgifb/vb_setmode.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
> index 46dea3f..eed58f9 100644
> --- a/drivers/staging/xgifb/vb_setmode.c
> +++ b/drivers/staging/xgifb/vb_setmode.c
> @@ -5274,9 +5274,8 @@ void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
>  
>  	outb(0x00, pVBInfo->P3c8);
>  
> -	for (i = 0; i < 256 * 3; i++) {
> +	for (i = 0; i < 256 * 3; i++)
>  		outb(0x0F, (pVBInfo->P3c8 + 1)); /* DAC_TEST_PARMS */
> -	}
>  
>  	mdelay(1);
>  
> @@ -5291,9 +5290,8 @@ void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
>  	/* avoid display something, set BLACK DAC if not restore DAC */
>  	outb(0x00, pVBInfo->P3c8);
>  
> -	for (i = 0; i < 256 * 3; i++) {
> +	for (i = 0; i < 256 * 3; i++)
>  		outb(0, (pVBInfo->P3c8 + 1));
> -	}
>  
>  	xgifb_reg_set(pVBInfo->P3c4, 0x01, SR01);
>  	xgifb_reg_set(pVBInfo->P3d4, 0x63, CR63);
> -- 
> 1.8.1.2
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Greg Kroah-Hartman Oct. 8, 2013, 1:40 a.m. UTC | #2
On Mon, Oct 07, 2013 at 10:25:28PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with braces {} are not necessary
> for single statement blocks in vb_setmode.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index 46dea3f..eed58f9 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -5274,9 +5274,8 @@  void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
 
 	outb(0x00, pVBInfo->P3c8);
 
-	for (i = 0; i < 256 * 3; i++) {
+	for (i = 0; i < 256 * 3; i++)
 		outb(0x0F, (pVBInfo->P3c8 + 1)); /* DAC_TEST_PARMS */
-	}
 
 	mdelay(1);
 
@@ -5291,9 +5290,8 @@  void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
 	/* avoid display something, set BLACK DAC if not restore DAC */
 	outb(0x00, pVBInfo->P3c8);
 
-	for (i = 0; i < 256 * 3; i++) {
+	for (i = 0; i < 256 * 3; i++)
 		outb(0, (pVBInfo->P3c8 + 1));
-	}
 
 	xgifb_reg_set(pVBInfo->P3c4, 0x01, SR01);
 	xgifb_reg_set(pVBInfo->P3d4, 0x63, CR63);