From: Patrick McHardy Date: Wed, 6 Feb 2008 00:19:33 +0000 (-0800) Subject: [NET_SCHED]: em_meta: fix compile warning X-Git-Tag: v2.6.25-rc1~518^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ea9d70df8f8be741ee0525490370de06163d2de;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index 9c2ec1992a2..2a7e648fbcf 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c @@ -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