From: Alexey Klimov Date: Fri, 27 Mar 2009 18:57:46 +0000 (-0300) Subject: V4L/DVB (11447): gspca - mr97310a: Return good error code in mod_init. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57;p=mv-sheeva.git V4L/DVB (11447): gspca - mr97310a: Return good error code in mod_init. Signed-off-by: Alexey Klimov Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 2a901a4a6f0..f9da55b20fa 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c @@ -347,8 +347,11 @@ static struct usb_driver sd_driver = { /* -- module insert / remove -- */ static int __init sd_mod_init(void) { - if (usb_register(&sd_driver) < 0) - return -1; + int ret; + + ret = usb_register(&sd_driver); + if (ret < 0) + return ret; PDEBUG(D_PROBE, "registered"); return 0; }