Skip to content
Snippets Groups Projects
Commit 9514bfe5 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Jeff Garzik
Browse files

Cleanup usbnet_probe() return value handling


usbnet_probe() handles a positive return value from the driver bind()
function as success, but will later only setup the status handler if the
return value was zero, leading to confusion. Patch adjusts this to accept
positive values as success in both checks.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 4638aef1
No related branches found
No related tags found
No related merge requests found
......@@ -1213,7 +1213,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
status = 0;
}
if (status == 0 && dev->status)
if (status >= 0 && dev->status)
status = init_status (dev, udev);
if (status < 0)
goto out3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment