summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/qmi_wwan.c
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2022-04-06 02:17:03 -0700
committerDavid S. Miller <davem@davemloft.net>2022-04-06 15:19:53 +0100
commit207d924dcf324fa4334938a38463aa0f1fcdc756 (patch)
tree2a5276aa00df2d9e8fdefd69ff241085444fc3fc /drivers/net/usb/qmi_wwan.c
parentbe8d9d05271c961dfe366793a3886f4bd6f39dca (diff)
downloadlinux-207d924dcf324fa4334938a38463aa0f1fcdc756.tar.gz
linux-207d924dcf324fa4334938a38463aa0f1fcdc756.tar.bz2
linux-207d924dcf324fa4334938a38463aa0f1fcdc756.zip
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/net/usb/qmi_wwan.c')
-rw-r--r--drivers/net/usb/qmi_wwan.c1
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: