ChangeSet 1.1276.1.39, 2003/08/27 11:31:24-07:00, bellucda@tiscali.it [PATCH] Audit and minor cleanups in usbstorage drivers/usb/storage/usb.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff -Nru a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c --- a/drivers/usb/storage/usb.c Tue Sep 2 12:44:12 2003 +++ b/drivers/usb/storage/usb.c Tue Sep 2 12:44:12 2003 @@ -1006,20 +1006,23 @@ * Initialization and registration ***********************************************************************/ -int __init usb_stor_init(void) +static int __init usb_stor_init(void) { + int retval; printk(KERN_INFO "Initializing USB Mass Storage driver...\n"); - /* register the driver, return -1 if error */ - if (usb_register(&usb_storage_driver) < 0) - return -1; + /* register the driver, return usb_register return code if error */ + retval = usb_register(&usb_storage_driver); + if (retval) + goto out; /* we're all set */ printk(KERN_INFO "USB Mass Storage support registered.\n"); - return 0; +out: + return retval; } -void __exit usb_stor_exit(void) +static void __exit usb_stor_exit(void) { US_DEBUGP("usb_stor_exit() called\n");