Commit 351ff358 authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

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

parent 378f84e5
...@@ -818,6 +818,7 @@ static struct usb_driver dabusb_driver = { ...@@ -818,6 +818,7 @@ static struct usb_driver dabusb_driver = {
static int __init dabusb_init (void) static int __init dabusb_init (void)
{ {
int retval;
unsigned u; unsigned u;
/* initialize struct */ /* initialize struct */
...@@ -835,14 +836,16 @@ static int __init dabusb_init (void) ...@@ -835,14 +836,16 @@ static int __init dabusb_init (void)
} }
/* register misc device */ /* register misc device */
if (usb_register(&dabusb_driver)) retval = usb_register(&dabusb_driver);
return -1; if (retval)
goto out;
dbg("dabusb_init: driver registered"); dbg("dabusb_init: driver registered");
info(DRIVER_VERSION ":" DRIVER_DESC); info(DRIVER_VERSION ":" DRIVER_DESC);
return 0; out:
return retval;
} }
static void __exit dabusb_cleanup (void) static void __exit dabusb_cleanup (void)
......
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