diff mbox

[OPW,kernel,04/10] Staging: rtl8187se: Remove unnecessary braces around single statement in dot11d.c

Message ID 989c6900c989d3abc857c37b44fb0681fae82f45.1383331168.git.rashika.kheria@gmail.com
State New, archived
Headers show

Commit Message

Rashika Nov. 1, 2013, 6:51 p.m. UTC
This patch fixes the following checkpatch.pl issues in
ieee80211/dot11d.c-
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/staging/rtl8187se/ieee80211/dot11d.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/staging/rtl8187se/ieee80211/dot11d.c b/drivers/staging/rtl8187se/ieee80211/dot11d.c
index bc73b90..f1d8c7b 100644
--- a/drivers/staging/rtl8187se/ieee80211/dot11d.c
+++ b/drivers/staging/rtl8187se/ieee80211/dot11d.c
@@ -142,9 +142,8 @@  DOT11D_GetMaxTxPwrInDbm(
 		netdev_info(&dev->dev, "DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
 		return MaxTxPwrInDbm;
 	}
-	if (pDot11dInfo->channel_map[Channel]) {
+	if (pDot11dInfo->channel_map[Channel])
 		MaxTxPwrInDbm = pDot11dInfo->MaxTxPwrDbmList[Channel];
-	}
 
 	return MaxTxPwrInDbm;
 }