Skip to content

Commit

Permalink
batman-adv: Don't return value in void function
Browse files Browse the repository at this point in the history
gw_node_delete is defined with "void" as return type, but still tries to
return a value. The called function gw_node_delete is also return as
void and thus doesn't provide a value for us.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
  • Loading branch information
Sven Eckelmann committed Jun 9, 2011
1 parent d1829fa commit 6b9aadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void gw_node_update(struct bat_priv *bat_priv,

void gw_node_delete(struct bat_priv *bat_priv, struct orig_node *orig_node)
{
return gw_node_update(bat_priv, orig_node, 0);
gw_node_update(bat_priv, orig_node, 0);
}

void gw_node_purge(struct bat_priv *bat_priv)
Expand Down

0 comments on commit 6b9aadf

Please sign in to comment.