staging: rtl8723bs: remove braces from single if statement
authorMichael Straube <straube.linux@gmail.com>
Sun, 8 Jul 2018 10:38:55 +0000 (12:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Jul 2018 15:41:15 +0000 (17:41 +0200)
Remove braces from single if statement to follow kernel coding style.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c

index a4f9e2b..3f1c7bb 100644 (file)
@@ -149,9 +149,8 @@ u8 *rtw_get_ie(u8 *pbuf, sint index, sint *len, sint limit)
        sint tmp, i;
        u8 *p;
 
-       if (limit < 1) {
+       if (limit < 1)
                return NULL;
-       }
 
        p = pbuf;
        i = 0;