Staging: rtl8187se: Remove unnecessary braces around single statement in dot11d.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 2 Nov 2013 17:19:59 +0000 (22:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 16:44:21 +0000 (08:44 -0800)
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>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/dot11d.c

index 2f5d367..eb161f2 100644 (file)
@@ -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;
 }