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

[PATCH] USB: Audit usb_register in usbmouse_init()

parent b81a3c76
......@@ -247,9 +247,10 @@ static struct usb_driver usb_mouse_driver = {
static int __init usb_mouse_init(void)
{
usb_register(&usb_mouse_driver);
info(DRIVER_VERSION ":" DRIVER_DESC);
return 0;
int retval = usb_register(&usb_mouse_driver);
if (retval == 0)
info(DRIVER_VERSION ":" DRIVER_DESC);
return retval;
}
static void __exit usb_mouse_exit(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