staging: rtl8188eu: remove unnecessary braces
authorJan Gruber <j4n6ru@gmail.com>
Mon, 5 Jul 2021 07:21:25 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 08:19:08 +0000 (10:19 +0200)
This commit fixes the following checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Jan Gruber <j4n6ru@gmail.com>
Link: https://lore.kernel.org/r/20210705072125.199810-1-j4n6ru@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index b7e2692..f8519bf 100644 (file)
@@ -379,9 +379,8 @@ static int rtw_usb_if1_init(struct usb_interface *pusb_intf)
 
        /* step 6. Tell the network stack we exist */
        err = register_netdev(pnetdev);
-       if (err) {
+       if (err)
                goto free_hal_data;
-       }
 
        pr_debug("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
                , padapter->bDriverStopped