aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@meshcoding.com>2013-11-16 17:02:51 -0500
committerAntonio Quartulli <antonio@meshcoding.com>2014-01-12 08:41:18 -0500
commit82ab33214e301c7987d19376dc07bcc16186b7cc (patch)
tree1de682d3a682dfec30cbfe273e379ed470d0f860
parentcb1c92ec37fb70543d133a1fa7d9b54d6f8a1ecd (diff)
batman-adv: remove returns at the end of void functions
Return at the end of void functions is not needed. Since most of the void functions in the code do not do so, make all the others consistent by removing the useless returns. Actually all the functions to be "fixed" are in network-coding.h only. Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
-rw-r--r--net/batman-adv/network-coding.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/batman-adv/network-coding.h b/net/batman-adv/network-coding.h
index ab59b3d7cf0f..136db6df5331 100644
--- a/net/batman-adv/network-coding.h
+++ b/net/batman-adv/network-coding.h
@@ -62,7 +62,6 @@ static inline int batadv_nc_mesh_init(struct batadv_priv *bat_priv)
62 62
63static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv) 63static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv)
64{ 64{
65 return;
66} 65}
67 66
68static inline void 67static inline void
@@ -72,7 +71,6 @@ batadv_nc_update_nc_node(struct batadv_priv *bat_priv,
72 struct batadv_ogm_packet *ogm_packet, 71 struct batadv_ogm_packet *ogm_packet,
73 int is_single_hop_neigh) 72 int is_single_hop_neigh)
74{ 73{
75 return;
76} 74}
77 75
78static inline void 76static inline void
@@ -81,17 +79,14 @@ batadv_nc_purge_orig(struct batadv_priv *bat_priv,
81 bool (*to_purge)(struct batadv_priv *, 79 bool (*to_purge)(struct batadv_priv *,
82 struct batadv_nc_node *)) 80 struct batadv_nc_node *))
83{ 81{
84 return;
85} 82}
86 83
87static inline void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv) 84static inline void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv)
88{ 85{
89 return;
90} 86}
91 87
92static inline void batadv_nc_init_orig(struct batadv_orig_node *orig_node) 88static inline void batadv_nc_init_orig(struct batadv_orig_node *orig_node)
93{ 89{
94 return;
95} 90}
96 91
97static inline bool batadv_nc_skb_forward(struct sk_buff *skb, 92static inline bool batadv_nc_skb_forward(struct sk_buff *skb,
@@ -104,14 +99,12 @@ static inline void
104batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv, 99batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv,
105 struct sk_buff *skb) 100 struct sk_buff *skb)
106{ 101{
107 return;
108} 102}
109 103
110static inline void 104static inline void
111batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv, 105batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv,
112 struct sk_buff *skb) 106 struct sk_buff *skb)
113{ 107{
114 return;
115} 108}
116 109
117static inline int batadv_nc_nodes_seq_print_text(struct seq_file *seq, 110static inline int batadv_nc_nodes_seq_print_text(struct seq_file *seq,