Skip to contentSkip to conversation

net: usb: remove duplicate assignment

PATCH RESEND Applied Qing Wang 2 participants 2 messages Apr 6, 2022

Subsystems (5)
lore
Share & tools
lore

Qing Wang

author
#0 lore raw

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.

---
 drivers/net/usb/qmi_wwan.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/usb/qmi_wwan.c +0 -1
index 3353e76..17cf0d1
@@ -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
#1 lore raw
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 assigned ssi->netdev to skb->dev if successed, no need to repeat assignment.

[...]

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