net: usb: remove duplicate assignment
Subsystems (5)
PATCH RESEND 1/1 net: usb: remove duplicate assignment
From: Wang Qing <[email protected]>
netdev_alloc_skb() has assigned ssi->netdev to skb->dev if successed, no need to repeat assignment.
Signed-off-by Wang Qing <[email protected]>
--- drivers/net/usb/qmi_wwan.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/usb/qmi_wwan.c +0 -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 :
Signature · 1 line
2.7.4
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 8 lines · On Wed, 6 Apr 2022 02:17:03 -0700 you wrote:
From: Wang Qing <[email protected]>
netdev_alloc_skb()has assignedssi->netdevtoskb->devif successed, no need to repeat assignment.Signed-off-by Wang Qing <[email protected]>[...]
Here is the summary with links:
- [RESEND] net: usb: remove duplicate assignment
https://git.kernel.org/netdev/net-next/c/207d924dcf32
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html