Skip to contentSkip to conversation

staging: wilc1000: Fixed a return coding style warning.

PATCH Superseded Rakhi Sharma 2 participants 2 messages Feb 13, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Fixed a return coding style warning.

Remove unusefull return at the end of void function,as warning generted by checkpatch.
WARNING: void function return statements are not generally useful.

---
 drivers/staging/wilc1000/linux_wlan.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/wilc1000/linux_wlan.c +0 -1
index 54fe9d7..5ba600c 100644
@@ -1120,7 +1120,6 @@ static void wilc_set_multicast_list(struct net_device *dev)
 
 	wilc_setup_multicast_filter(vif, true, (dev->mc.count));
 
-	return;
 }
 
 static void linux_wlan_tx_complete(void *priv, int status)
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · Rakhi Sharma

Remove unusefull return at the end of void function,as warning generted by

I don't think that "unusefull" is a real word. Unneeded would be better.

Quoted 13 lines

checkpatch.
WARNING: void function return statements are not generally useful.

---
 drivers/staging/wilc1000/linux_wlan.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/wilc1000/linux_wlan.c +0 -0
index 54fe9d7..5ba600c 100644

drivers/staging/wilc1000/linux_wlan.c static void wilc_set_multicast_list(struct net_device *dev) · line 1123

Quoted 4 lines
drivers/staging/wilc1000/linux_wlan.c +0 -1
@@ -1120,7 +1120,6 @@ static void wilc_set_multicast_list(struct net_device *dev)
 
 	wilc_setup_multicast_filter(vif, true, (dev->mc.count));
 
-	return;

Please get rid of the blank line also.

julia

Quoted 13 lines
drivers/staging/wilc1000/linux_wlan.c +0 -0
 }
 
 static void linux_wlan_tx_complete(void *priv, int status)
Signature · 8 lines
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1455363907-15077-1-git-send-email-rakhish1994%40gmail.com.
For more options, visit https://groups.google.com/d/optout.