Skip to contentSkip to conversation

staging: rtl8188eu: remove unnecessary braces

PATCH New Jan Gruber 1 participant 1 message Jul 5, 2021 Staging

lore
Share & tools
lore

Jan Gruber

author
#0 lore raw

PATCH 1/1 staging: rtl8188eu: remove unnecessary braces

This commit fixes the following checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -2
index b7e2692c35f3..f8519bfec020 100644
@@ -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
Signature · 1 line
2.25.1