Skip to contentSkip to conversation

net: usb: pegasus: fixes of set_register(s) return value evaluation;

PATCH Applied Petko Manolov 3 participants 3 messages Aug 20, 2021 – Aug 21, 2021

Subsystems (5)

v2 of 3 Applied 1/1 Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: usb: pegasus: fixes of set_register(s) return value evaluation;

- restore the behavior in enable_net_traffic() to avoid regressions - Jakub

    Kicinski;
  - hurried up and removed redundant assignment in pegasus_open() before yet
    another checker complains;
Fixes 8a160e2e9aeb ("net: usb: pegasus: Check the return value of get_geristers() and friends;")
---
 drivers/net/usb/pegasus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/usb/pegasus.c +2 -2
index 652e9fcf0b77..9f9dd0de33cb 100644
@@ -446,7 +446,7 @@ static int enable_net_traffic(struct net_device *dev, struct usb_device *usb)
 		write_mii_word(pegasus, 0, 0x1b, &auxmode);
 	}
 
-	return 0;
+	return ret;
 fail:
 	netif_dbg(pegasus, drv, pegasus->net, "%s failed\n", __func__);
 	return ret;
@@ -835,7 +835,7 @@ static int pegasus_open(struct net_device *net)
 	if (!pegasus->rx_skb)
 		goto exit;
 
-	res = set_registers(pegasus, EthID, 6, net->dev_addr);
+	set_registers(pegasus, EthID, 6, net->dev_addr);
 
 	usb_fill_bulk_urb(pegasus->rx_urb, pegasus->usb,
 			  usb_rcvbulkpipe(pegasus->usb, 1),
Signature · 1 line
2.30.2
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 10 lines · On Fri, 20 Aug 2021 09:57:53 +0300 you wrote:

- restore the behavior in enable_net_traffic() to avoid regressions - Jakub

    Kicinski;
  - hurried up and removed redundant assignment in pegasus_open() before yet
    another checker complains;
Fixes 8a160e2e9aeb ("net: usb: pegasus: Check the return value of get_geristers() and friends;")

[...]

Here is the summary with links:
- [v2] net: usb: pegasus: fixes of set_register(s) return value evaluation;
https://git.kernel.org/netdev/net/c/ffc9c3ebb4af

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

maintainer
#2 lore raw
In reply to Petko Manolov
Quoted 11 lines · Petko Manolov

- restore the behavior in enable_net_traffic() to avoid regressions - Jakub

    Kicinski;
  - hurried up and removed redundant assignment in pegasus_open() before yet
    another checker complains;
Fixes 8a160e2e9aeb ("net: usb: pegasus: Check the return value of get_geristers() and friends;")
---
 drivers/net/usb/pegasus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>