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/bat_v.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/bat_v.c')
-rw-r--r-- | net/batman-adv/bat_v.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_v.c b/net/batman-adv/bat_v.c index e79f6f01182e..57c795c4c8cd 100644 --- a/net/batman-adv/bat_v.c +++ b/net/batman-adv/bat_v.c @@ -787,7 +787,7 @@ static bool batadv_v_gw_is_eligible(struct batadv_priv *bat_priv, struct batadv_orig_node *curr_gw_orig, struct batadv_orig_node *orig_node) { - struct batadv_gw_node *curr_gw = NULL, *orig_gw = NULL; + struct batadv_gw_node *curr_gw, *orig_gw = NULL; u32 gw_throughput, orig_throughput, threshold; bool ret = false; |