Skip to content

Commit

Permalink
6lowpan: remove skb->dev assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Oct 28, 2013
1 parent b614442 commit b236b95
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b236b95

Please sign in to comment.