summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/send.c
diff options
context:
space:
mode:
authorSven Eckelmann2016-07-25 00:42:44 +0200
committerSimon Wunderlich2016-10-19 08:37:52 +0200
commit422d2f77803d85477df72f3153e85fd2b8c6b9e9 (patch)
treef1dc7de3ad08d605866799de920f367e4b185795 /net/batman-adv/send.c
parentbatman-adv: Less function calls in batadv_is_ap_isolated() after error detection (diff)
downloadkernel-qcow2-linux-422d2f77803d85477df72f3153e85fd2b8c6b9e9.tar.gz
kernel-qcow2-linux-422d2f77803d85477df72f3153e85fd2b8c6b9e9.tar.xz
kernel-qcow2-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/send.c')
-rw-r--r--net/batman-adv/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index 8d4e1f578574..e1e9136db6e8 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -562,7 +562,7 @@ int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv,
const struct sk_buff *skb,
unsigned long delay)
{
- struct batadv_hard_iface *primary_if = NULL;
+ struct batadv_hard_iface *primary_if;
struct batadv_forw_packet *forw_packet;
struct batadv_bcast_packet *bcast_packet;
struct sk_buff *newskb;