Commit 8bf77d4c authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

[PATCH] Audit and minor cleanups in drivers/usb/*

- if usb_register fails report back its return code rather than -1
parent 9652479d
...@@ -6115,13 +6115,16 @@ ov511_deregister_decomp_module(int ov518, int mmx) ...@@ -6115,13 +6115,16 @@ ov511_deregister_decomp_module(int ov518, int mmx)
static int __init static int __init
usb_ov511_init(void) usb_ov511_init(void)
{ {
int retval;
if (usb_register(&ov511_driver) < 0) retval = usb_register(&ov511_driver);
return -1; if (retval)
goto out;
info(DRIVER_VERSION " : " DRIVER_DESC); info(DRIVER_VERSION " : " DRIVER_DESC);
return 0; out:
return retval;
} }
static void __exit static void __exit
......
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