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

[PATCH] USB: Audit usb_register in drivers/usb/input/xpad.c

parent 4edf0690
......@@ -342,9 +342,10 @@ static struct usb_driver xpad_driver = {
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)
......
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