diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-03-27 19:57:46 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-03-27 19:57:46 +0100 |
commit | fc0db02c3b9278afb23eb9a2045e4ed008249f23 (patch) | |
tree | d8f37e9c93dbda77d8ca3b5b9b4b97f9d7877870 /linux | |
parent | 2f9645d66b4695de43b5545590cfc07f7319e56e (diff) | |
download | mediapointer-dvb-s2-fc0db02c3b9278afb23eb9a2045e4ed008249f23.tar.gz mediapointer-dvb-s2-fc0db02c3b9278afb23eb9a2045e4ed008249f23.tar.bz2 |
gspca - mr97310a: Return good error code in mod_init.
From: Alexey Klimov <klimov.linux@gmail.com>
Priority: normal
Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/gspca/mr97310a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/video/gspca/mr97310a.c b/linux/drivers/media/video/gspca/mr97310a.c index 2a901a4a6..f9da55b20 100644 --- a/linux/drivers/media/video/gspca/mr97310a.c +++ b/linux/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; } |