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

[PATCH] USB: Audit usb_register() in drivers/usb/input/aiptek.c

parent bc76eafe
...@@ -367,10 +367,12 @@ static struct usb_driver aiptek_driver = { ...@@ -367,10 +367,12 @@ static struct usb_driver aiptek_driver = {
static int __init static int __init
aiptek_init(void) aiptek_init(void)
{ {
usb_register(&aiptek_driver); int result = usb_register(&aiptek_driver);
if (result == 0) {
info(DRIVER_VERSION " " DRIVER_AUTHOR); info(DRIVER_VERSION " " DRIVER_AUTHOR);
info(DRIVER_DESC); info(DRIVER_DESC);
return 0; }
return result;
} }
static void __exit static void __exit
......
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