diff options
author | Wang Qing | 2022-04-06 02:17:03 -0700 |
---|---|---|
committer | David S. Miller | 2022-04-06 15:19:53 +0100 |
commit | 207d924dcf324fa4334938a38463aa0f1fcdc756 (patch) | |
tree | 2a5276aa00df2d9e8fdefd69ff241085444fc3fc /drivers | |
parent | be8d9d05271c961dfe366793a3886f4bd6f39dca (diff) |
net: usb: remove duplicate assignment
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 3353e761016d..17cf0d10fef9 100644 --- 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: |