Commit 63938f3c authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[NET]: Fix warning in tr.c

A few things popped up when using current gcc cvs.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 7ab50771
......@@ -110,7 +110,7 @@ int tr_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
*/
if (type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP)
{
struct trllc *trllc=(struct trllc *)(trh+1);
struct trllc *trllc;
hdr_len = sizeof(struct trh_hdr) + sizeof(struct trllc);
trh = (struct trh_hdr *)skb_push(skb, hdr_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment