]> err.no Git - linux-2.6/commitdiff
[BRIDGE] br_netfilter: Warning fixes.
authorAndrew Morton <akpm@osdl.org>
Tue, 21 Mar 2006 06:55:24 +0000 (22:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:55:24 +0000 (22:55 -0800)
net/bridge/br_netfilter.c: In function `br_nf_pre_routing':
net/bridge/br_netfilter.c:427: warning: unused variable `vhdr'
net/bridge/br_netfilter.c:445: warning: unused variable `vhdr'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netfilter.c

index 6787bc5197f7d262e3e92bc5b9376856c8fb58f7..70a395baaa01de2191317fdf2f06095331042f61 100644 (file)
@@ -424,7 +424,6 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff **pskb,
                        goto out;
 
                if (skb->protocol == __constant_htons(ETH_P_8021Q)) {
-                       u8 *vhdr = skb->data;
                        skb_pull_rcsum(skb, VLAN_HLEN);
                        skb->nh.raw += VLAN_HLEN;
                }
@@ -442,7 +441,6 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff **pskb,
                goto out;
 
        if (skb->protocol == __constant_htons(ETH_P_8021Q)) {
-               u8 *vhdr = skb->data;
                skb_pull_rcsum(skb, VLAN_HLEN);
                skb->nh.raw += VLAN_HLEN;
        }