[OPW,kernel] staging: vt6655: fixed use of unnecessary braces in baseband.c
diff mbox

Message ID 1382639387-9880-1-git-send-email-archanakumari959@gmail.com
State Accepted
Headers show

Commit Message

Archana kumari Oct. 24, 2013, 6:29 p.m. UTC
This patch fixes use of unnecessary braces in baseband.c

Signed-off-by: Archana kumari <archanakumari959@gmail.com>
---
 drivers/staging/vt6655/baseband.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Rusty Russell Oct. 25, 2013, 12:30 a.m. UTC | #1
Archana kumari <archanakumari959@gmail.com> writes:
> This patch fixes use of unnecessary braces in baseband.c
>
> Signed-off-by: Archana kumari <archanakumari959@gmail.com>

Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>

Cheers,
Rusty.

> ---
>  drivers/staging/vt6655/baseband.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> index c26418d..959568a 100644
> --- a/drivers/staging/vt6655/baseband.c
> +++ b/drivers/staging/vt6655/baseband.c
> @@ -2434,13 +2434,12 @@ void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData)
>  
>  	BBbReadEmbedded(pDevice->PortOffset, 0x0A, &byBBRxConf);//CR10
>  	// patch for 3253B0 Baseband with Cardbus module
> -	if (byData == pDevice->abyBBVGA[0]) {
> +	if (byData == pDevice->abyBBVGA[0])
>  		byBBRxConf |= 0x20;//0010 0000
> -	} else if (pDevice->bShortSlotTime) {
> +	else if (pDevice->bShortSlotTime)
>  		byBBRxConf &= 0xDF;//1101 1111
> -	} else {
> +	else
>  		byBBRxConf |= 0x20;//0010 0000
> -	}
>  	pDevice->byBBVGACurrent = byData;
>  	BBbWriteEmbedded(pDevice->PortOffset, 0x0A, byBBRxConf);//CR10
>  }
> -- 
> 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.

Patch
diff mbox

diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index c26418d..959568a 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -2434,13 +2434,12 @@  void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData)
 
 	BBbReadEmbedded(pDevice->PortOffset, 0x0A, &byBBRxConf);//CR10
 	// patch for 3253B0 Baseband with Cardbus module
-	if (byData == pDevice->abyBBVGA[0]) {
+	if (byData == pDevice->abyBBVGA[0])
 		byBBRxConf |= 0x20;//0010 0000
-	} else if (pDevice->bShortSlotTime) {
+	else if (pDevice->bShortSlotTime)
 		byBBRxConf &= 0xDF;//1101 1111
-	} else {
+	else
 		byBBRxConf |= 0x20;//0010 0000
-	}
 	pDevice->byBBVGACurrent = byData;
 	BBbWriteEmbedded(pDevice->PortOffset, 0x0A, byBBRxConf);//CR10
 }