summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJeevan Shriram <jshriram@codeaurora.org>2015-11-09 10:58:43 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:12:08 -0700
commit105850528ec991db4f9f213c4b6f2d59e3d1046f (patch)
treee38ba3c3c5ae669ba9545d873c39c3f6fd6c33ad /net
parent70db50a9b2019684c41ec1150352aaa6e0bb1bc3 (diff)
net: core: fix compilation warning for uninitialized variable
It is possible that the 'tail' variable is used without initialization. This change fixes uninitialized variable usage. Change-Id: Idbd7d52797af2eeffcece19249055d5099a7fdb1 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 3e0a6f408598..8933780be69b 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2813,7 +2813,7 @@ out_null:
struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev)
{
- struct sk_buff *next, *head = NULL, *tail;
+ struct sk_buff *next, *head = NULL, *tail = NULL;
for (; skb != NULL; skb = next) {
next = skb->next;