[commits] [batman-adv] next: batman-adv: no need for return in void functions (96cebef)

postmaster at open-mesh.org postmaster at open-mesh.org
Tue Sep 24 14:25:18 CEST 2013

Repository : ssh://git@open-mesh.org/batman-adv

On branch  : next


commit 96cebefc9faee1fe615bcb3a38877d8d5403b313
Author: Antonio Quartulli <antonio at meshcoding.com>
Date:   Sun Sep 22 20:26:50 2013 +0200

    batman-adv: no need for return in void functions
    Only network-coding.h is using "return;" inside void stub
    functions. This is not a consistent with the rest of the code,
    therefore don't continue to do as such.
    (Other stub functions will be cleaned later)
    Introduced by 7dd9d8992b0c197ba656a6d9a70966cea10fc2d9
    ("batman-adv: tvlv - add network coding container")
    Signed-off-by: Antonio Quartulli <antonio at meshcoding.com>
    Signed-off-by: Marek Lindner <mareklindner at neomailbox.ch>


 network-coding.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/network-coding.h b/network-coding.h
index 8a97b40..d2f110c 100644
--- a/network-coding.h
+++ b/network-coding.h
@@ -49,7 +49,6 @@ int batadv_nc_init_debugfs(struct batadv_priv *bat_priv);
 static inline void batadv_nc_status_update(struct net_device *net_dev)
-	return;
 static inline int batadv_nc_init(struct batadv_priv *bat_priv)

More information about the commits mailing list