Commit 5e8569af authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

[PATCH] USB: Minor cleanups in usb_serial_probe

- on "probe" failure report back its return code rather than -ENODEV
parent ee7d8010
...@@ -1019,10 +1019,10 @@ int usb_serial_probe(struct usb_interface *interface, ...@@ -1019,10 +1019,10 @@ int usb_serial_probe(struct usb_interface *interface,
retval = type->probe (serial, id_pattern); retval = type->probe (serial, id_pattern);
module_put(type->owner); module_put(type->owner);
if (retval < 0) { if (retval) {
dbg ("sub driver rejected device"); dbg ("sub driver rejected device");
kfree (serial); kfree (serial);
return -ENODEV; return retval;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment