net: ieee802154: remove explicit set skb->sk
authorLin Zhang <xiaolou4617@gmail.com>
Tue, 23 May 2017 05:21:05 +0000 (13:21 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 May 2017 18:05:15 +0000 (20:05 +0200)
Explicit set skb->sk is needless, sock_alloc_send_skb is already set it.

Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
Acked-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/socket.c

index eedba7670b517fc1b44cbf8b3e085fb81b6a713e..b01a1f04626bb4a186d3e61324bf48efabb0264e 100644 (file)
@@ -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);
@@ -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);