OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8d9d0
)
net: usb: remove duplicate assignment
author
Wang Qing
<wangqing@vivo.com>
Wed, 6 Apr 2022 09:17:03 +0000
(
02:17
-0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 6 Apr 2022 14:19:53 +0000
(15:19 +0100)
netdev_alloc_skb() has assigned ssi->netdev to skb->dev if successed,
no need to repeat assignment.
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/qmi_wwan.c
b/drivers/net/usb/qmi_wwan.c
index
3353e76
..
17cf0d1
100644
(file)
--- a/
drivers/net/usb/qmi_wwan.c
+++ b/
drivers/net/usb/qmi_wwan.c
@@
-190,7
+190,6
@@
static int qmimux_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
skbn = netdev_alloc_skb(net, pkt_len + LL_MAX_HEADER);
if (!skbn)
return 0;
- skbn->dev = net;
switch (skb->data[offset + qmimux_hdr_sz] & 0xf0) {
case 0x40: