]> err.no Git - linux-2.6/commitdiff
[NET_SCHED]: em_meta: fix compile warning
authorPatrick McHardy <kaber@trash.net>
Wed, 6 Feb 2008 00:19:33 +0000 (16:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2008 00:19:33 +0000 (16:19 -0800)
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>
net/sched/em_meta.c

index 9c2ec1992a2a0f8a95d21957c1171ab06f59959c..2a7e648fbcf44edd7ce7944fee7627f3590d434a 100644 (file)
@@ -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