]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
batman-adv: avoid useless return in void functions
authorAntonio Quartulli <antonio@meshcoding.com>
Mon, 21 Jul 2014 08:03:59 +0000 (10:03 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 7 Jan 2015 16:21:52 +0000 (17:21 +0100)
Cc: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/debugfs.c
net/batman-adv/multicast.h

index a12e25efaf6ff055094f843c7c5536ce861f593a..14850918ff121bfe8cbad3d3b6f17b7719cff8aa 100644 (file)
@@ -233,7 +233,6 @@ static int batadv_debug_log_setup(struct batadv_priv *bat_priv)
 
 static void batadv_debug_log_cleanup(struct batadv_priv *bat_priv)
 {
-       return;
 }
 #endif
 
index 73b5d45819c1b0060f53ed4ac2cdd466206bf37c..3a44ebdb43cba601b34e932a4d752baa33ee2f0d 100644 (file)
@@ -50,7 +50,6 @@ void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node);
 
 static inline void batadv_mcast_mla_update(struct batadv_priv *bat_priv)
 {
-       return;
 }
 
 static inline enum batadv_forw_mode
@@ -67,12 +66,10 @@ static inline int batadv_mcast_init(struct batadv_priv *bat_priv)
 
 static inline void batadv_mcast_free(struct batadv_priv *bat_priv)
 {
-       return;
 }
 
 static inline void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node)
 {
-       return;
 }
 
 #endif /* CONFIG_BATMAN_ADV_MCAST */