mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
be8d9d0527
commit
207d924dcf
1 file changed
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user