summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-27 19:57:46 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-03-27 19:57:46 +0100
commitfc0db02c3b9278afb23eb9a2045e4ed008249f23 (patch)
treed8f37e9c93dbda77d8ca3b5b9b4b97f9d7877870 /linux/drivers/media/video
parent2f9645d66b4695de43b5545590cfc07f7319e56e (diff)
downloadmediapointer-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/drivers/media/video')
-rw-r--r--linux/drivers/media/video/gspca/mr97310a.c7
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;
}