mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-20 19:34:46 +00:00
[NET_SCHED]: em_meta: fix compile warning
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>
This commit is contained in:
parent
21511abd0a
commit
0ea9d70df8
|
@ -176,7 +176,7 @@ META_COLLECTOR(var_dev)
|
||||||
|
|
||||||
META_COLLECTOR(int_vlan_tag)
|
META_COLLECTOR(int_vlan_tag)
|
||||||
{
|
{
|
||||||
unsigned short tag;
|
unsigned short uninitialized_var(tag);
|
||||||
if (vlan_get_tag(skb, &tag) < 0)
|
if (vlan_get_tag(skb, &tag) < 0)
|
||||||
*err = -1;
|
*err = -1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue