mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
net: usb: asix_devices: fix missing return code check on call to asix_write_medium_mode
The call to asix_write_medium_mode is not updating the return code ret and yet ret is being checked for an error. Fix this by assigning ret to the return code from the call asix_write_medium_mode. Detected by CoverityScan, CID#1357148 ("Logically Dead Code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0bf09c397e
commit
4f3de46f7a
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ static int ax88772_reset(struct usbnet *dev)
|
|||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
asix_write_medium_mode(dev, AX88772_MEDIUM_DEFAULT, 0);
|
||||
ret = asix_write_medium_mode(dev, AX88772_MEDIUM_DEFAULT, 0);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
|
|
Loading…
Reference in a new issue