Skip to content

Commit

Permalink
batman-adv: remove returns at the end of void functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonio Quartulli committed Jan 12, 2014
1 parent cb1c92e commit 82ab332
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/batman-adv/network-coding.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ static inline int batadv_nc_mesh_init(struct batadv_priv *bat_priv)

static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv)
{
return;
}

static inline void
Expand All @@ -72,7 +71,6 @@ batadv_nc_update_nc_node(struct batadv_priv *bat_priv,
struct batadv_ogm_packet *ogm_packet,
int is_single_hop_neigh)
{
return;
}

static inline void
Expand All @@ -81,17 +79,14 @@ batadv_nc_purge_orig(struct batadv_priv *bat_priv,
bool (*to_purge)(struct batadv_priv *,
struct batadv_nc_node *))
{
return;
}

static inline void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv)
{
return;
}

static inline void batadv_nc_init_orig(struct batadv_orig_node *orig_node)
{
return;
}

static inline bool batadv_nc_skb_forward(struct sk_buff *skb,
Expand All @@ -104,14 +99,12 @@ static inline void
batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv,
struct sk_buff *skb)
{
return;
}

static inline void
batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv,
struct sk_buff *skb)
{
return;
}

static inline int batadv_nc_nodes_seq_print_text(struct seq_file *seq,
Expand Down

0 comments on commit 82ab332

Please sign in to comment.