]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging : wilc1000: Remove braces for single statement blocks
authorShraddha Barke <shraddha.6596@gmail.com>
Wed, 29 Jul 2015 06:48:58 +0000 (12:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2015 21:13:03 +0000 (14:13 -0700)
This patch fixes the following checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c

index 8bacd8cfd9451f3e8c6c34b5ef2c9041f5040b9c..342a3368d4a239c94d6db71d4724bdf6d3f8cef6 100644 (file)
@@ -855,9 +855,8 @@ s32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo)
 
                /* Get DTIM Period */
                pu8TimElm = get_tim_elm(pu8msa, (u16RxLen + FCS_LEN), u8index);
-               if (pu8TimElm != 0) {
+               if (pu8TimElm != 0)
                        pstrNetworkInfo->u8DtimPeriod = pu8TimElm[3];
-               }
                pu8IEs = &pu8msa[MAC_HDR_LEN + TIME_STAMP_LEN + BEACON_INTERVAL_LEN + CAP_INFO_LEN];
                u16IEsLen = u16RxLen - (MAC_HDR_LEN + TIME_STAMP_LEN + BEACON_INTERVAL_LEN + CAP_INFO_LEN);