aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2009-03-27 15:57:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:20:23 -0300
commit5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57 (patch)
tree9c3f01bb82a80a9f993be96686e79a16bfd930ea
parentdd72cb3eda68067f27e928a44aa40d82f972669a (diff)
V4L/DVB (11447): gspca - mr97310a: Return good error code in mod_init.
Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/mr97310a.c7
1 files changed, 5 insertions, 2 deletions
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;
}