diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-07-25 00:42:44 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-10-19 08:37:52 +0200 |
commit | 422d2f77803d85477df72f3153e85fd2b8c6b9e9 (patch) | |
tree | f1dc7de3ad08d605866799de920f367e4b185795 /net/batman-adv/gateway_client.c | |
parent | batman-adv: Less function calls in batadv_is_ap_isolated() after error detection (diff) | |
download | linux-422d2f77803d85477df72f3153e85fd2b8c6b9e9.tar.xz linux-422d2f77803d85477df72f3153e85fd2b8c6b9e9.zip |
batman-adv: Remove needless init of variables on stack
Some variables are overwritten immediatelly in a functions. These don't
have to be initialized to a specific value on the stack because the value
will be overwritten before they will be used anywhere.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index de055d64debe..69bfe98b5360 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/gateway_client.c @@ -704,7 +704,7 @@ bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, { struct batadv_neigh_node *neigh_curr = NULL; struct batadv_neigh_node *neigh_old = NULL; - struct batadv_orig_node *orig_dst_node = NULL; + struct batadv_orig_node *orig_dst_node; struct batadv_gw_node *gw_node = NULL; struct batadv_gw_node *curr_gw = NULL; struct batadv_neigh_ifinfo *curr_ifinfo, *old_ifinfo; |