mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
net: usb: lan78xx: Fix return value handling in lan78xx_set_features
Update `lan78xx_set_features` to correctly return the result of `lan78xx_write_reg`. This ensures that errors during register writes are propagated to the caller. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20241209130751.703182-7-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
41b774e4f3
commit
bf361b18d9
@ -2822,9 +2822,7 @@ static int lan78xx_set_features(struct net_device *netdev,
|
||||
|
||||
spin_unlock_irqrestore(&pdata->rfe_ctl_lock, flags);
|
||||
|
||||
lan78xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl);
|
||||
|
||||
return 0;
|
||||
return lan78xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl);
|
||||
}
|
||||
|
||||
static void lan78xx_deferred_vlan_write(struct work_struct *param)
|
||||
|
Loading…
Reference in New Issue
Block a user