projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b7aba
)
net: ieee802154: remove explicit set skb->sk
author
Lin Zhang
<xiaolou4617@gmail.com>
Tue, 23 May 2017 05:21:05 +0000
(13:21 +0800)
committer
Marcel 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/socket.c
b/net/ieee802154/socket.c
index eedba7670b517fc1b44cbf8b3e085fb81b6a713e..b01a1f04626bb4a186d3e61324bf48efabb0264e 100644
(file)
--- a/
net/ieee802154/socket.c
+++ b/
net/ieee802154/socket.c
@@
-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);