Skip to content

Commit

Permalink
net: usb: remove duplicate assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Qing authored and David S. Miller committed Apr 6, 2022
1 parent be8d9d0 commit 207d924
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/usb/qmi_wwan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 207d924

Please sign in to comment.