ChangeSet 1.1595.8.4, 2003/07/29 22:23:21-07:00, bellucda@tiscali.it [PATCH] USB: Audit usb_register in drivers/usb/input/xpad.c drivers/usb/input/xpad.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff -Nru a/drivers/usb/input/xpad.c b/drivers/usb/input/xpad.c --- a/drivers/usb/input/xpad.c Fri Aug 1 10:56:34 2003 +++ b/drivers/usb/input/xpad.c Fri Aug 1 10:56:34 2003 @@ -342,9 +342,10 @@ static int __init usb_xpad_init(void) { - usb_register(&xpad_driver); - info(DRIVER_DESC ":" DRIVER_VERSION); - return 0; + int result = usb_register(&xpad_driver); + if (result == 0) + info(DRIVER_DESC ":" DRIVER_VERSION); + return result; } static void __exit usb_xpad_exit(void)