Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary parentheses from return

PATCH Superseded Ashmit Kumar 2 participants 2 messages Jul 28 – Jul 29 Staging

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: remove unnecessary parentheses from return

The Linux kernel coding style specifies that return is not a function and therefore parentheses are not required.

---
 drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +1 -1
index f31196f54b3..40793aa58d6 100644
@@ -843,7 +843,7 @@ static int _netdev_open(struct net_device *pnetdev)
 	netif_carrier_off(pnetdev);
 	rtw_netif_stop_queue(pnetdev);
 
-	return (-1);
+	return -1;
 }
 
 int netdev_open(struct net_device *pnetdev)
Signature · 1 line
2.43.0
#1 lore raw
Quoted 2 lines · Ashmit Kumar

The Linux kernel coding style specifies that return is not a function and therefore parentheses are not required.

Please run your patches through checkpatch.

regards,
dan carpenter