Skip to content

Commit

Permalink
net: ieee802154: remove explicit set skb->sk
Browse files Browse the repository at this point in the history
Explicit set skb->sk is needless, sock_alloc_send_skb is already set it.

Signed-off-by: Lin Zhang <[email protected]>
Acked-by: Stefan Schmidt <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Lin Zhang authored and holtmann committed May 23, 2017
1 parent d1b7aba commit 8fafda7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ieee802154/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
goto out_skb;

skb->dev = dev;
skb->sk = sk;
skb->protocol = htons(ETH_P_IEEE802154);

dev_put(dev);
Expand Down Expand Up @@ -690,7 +689,6 @@ static int dgram_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
goto out_skb;

skb->dev = dev;
skb->sk = sk;
skb->protocol = htons(ETH_P_IEEE802154);

dev_put(dev);
Expand Down

0 comments on commit 8fafda7

Please sign in to comment.