Skip to content

Commit c53647a

Browse files
Dan Carpenterkuba-moo
authored andcommitted
net: usb: smsc95xx: Fix an error code in smsc95xx_reset()
Return a negative error code instead of success. Fixes: 2f7ca80 ("net: Add SMSC LAN9500 USB2.0 10/100 ethernet adapter driver") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent cbfbfe3 commit c53647a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/smsc95xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ static int smsc95xx_reset(struct usbnet *dev)
897897

898898
if (timeout >= 100) {
899899
netdev_warn(dev->net, "timeout waiting for completion of Lite Reset\n");
900-
return ret;
900+
return -ETIMEDOUT;
901901
}
902902

903903
ret = smsc95xx_set_mac_address(dev);

0 commit comments

Comments
 (0)