6lowpan: remove skb->dev assignment
authorAlexander Aring <alex.aring@gmail.com>
Mon, 28 Oct 2013 09:24:19 +0000 (10:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2013 23:47:52 +0000 (19:47 -0400)
This patch removes the assignment of skb->dev. We don't need it here because
we use the netdev_alloc_skb_ip_align function which already sets the
skb->dev.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c

index 7506d83300b08cf30a83fad95b6c91b47c2c7a30..3bc32fb2df8f85586ffe500f1d72813b421af5fe 100644 (file)
@@ -785,7 +785,6 @@ lowpan_alloc_new_frame(struct sk_buff *skb, u16 len, u16 tag)
                goto skb_err;
 
        frame->skb->priority = skb->priority;
-       frame->skb->dev = skb->dev;
 
        /* reserve headroom for uncompressed ipv6 header */
        skb_reserve(frame->skb, sizeof(struct ipv6hdr));