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

[PATCH] USB: Audit usb_register() in drivers/usb/net/catc.c

parent e6c96591
......@@ -989,9 +989,10 @@ static struct usb_driver catc_driver = {
static int __init catc_init(void)
{
info(DRIVER_VERSION " " DRIVER_DESC);
usb_register(&catc_driver);
return 0;
int result = usb_register(&catc_driver);
if (result == 0)
info(DRIVER_VERSION " " DRIVER_DESC);
return result;
}
static void __exit catc_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