提交 af3d7c1e 编写于 作者: S Steve Glendinning 提交者: David S. Miller

smsc95xx: fix error checking of usbnet_resume

without this patch the two lines below won't ever execute
Signed-off-by: NSteve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8d8be838
......@@ -1304,7 +1304,7 @@ static int smsc95xx_resume(struct usb_interface *intf)
check_warn_return(ret, "Error writing PM_CTRL");
}
return usbnet_resume(intf);
ret = usbnet_resume(intf);
check_warn_return(ret, "usbnet_resume error");
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册