Skip to content

Commit

Permalink
[NET_SCHED]: em_meta: fix compile warning
Browse files Browse the repository at this point in the history
net/sched/em_meta.c: In function 'meta_int_vlan_tag':
net/sched/em_meta.c:179: warning: 'tag' may be used uninitialized in this function

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 6, 2008
1 parent 21511ab commit 0ea9d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/em_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ META_COLLECTOR(var_dev)

META_COLLECTOR(int_vlan_tag)
{
unsigned short tag;
unsigned short uninitialized_var(tag);
if (vlan_get_tag(skb, &tag) < 0)
*err = -1;
else
Expand Down

0 comments on commit 0ea9d70

Please sign in to comment.