diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-03-27 19:57:46 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 23:20:23 +0200 |
commit | 5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57 (patch) | |
tree | 9c3f01bb82a80a9f993be96686e79a16bfd930ea /drivers/media/video/gspca/mr97310a.c | |
parent | V4L/DVB (11446): gspca - t613: Do sensor reset only for sensor om6802. (diff) | |
download | linux-5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57.tar.xz linux-5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57.zip |
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>
Diffstat (limited to 'drivers/media/video/gspca/mr97310a.c')
-rw-r--r-- | drivers/media/video/gspca/mr97310a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 2a901a4a6f00..f9da55b20fa3 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; } |