Commit e6b14849 authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab

V4L/DVB (10336): gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.

Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f69e9529
...@@ -1031,7 +1031,7 @@ static int __init sd_mod_init(void) ...@@ -1031,7 +1031,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -930,7 +930,7 @@ static int __init sd_mod_init(void) ...@@ -930,7 +930,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -457,7 +457,7 @@ static int __init sd_mod_init(void) ...@@ -457,7 +457,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -376,7 +376,7 @@ static int __init mod_m5602_init(void) ...@@ -376,7 +376,7 @@ static int __init mod_m5602_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -423,7 +423,7 @@ static int __init sd_mod_init(void) ...@@ -423,7 +423,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -2179,7 +2179,7 @@ static int __init sd_mod_init(void) ...@@ -2179,7 +2179,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -587,7 +587,7 @@ static int __init sd_mod_init(void) ...@@ -587,7 +587,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -567,7 +567,7 @@ static int __init sd_mod_init(void) ...@@ -567,7 +567,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1099,7 +1099,7 @@ static int __init sd_mod_init(void) ...@@ -1099,7 +1099,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1274,7 +1274,7 @@ static int __init sd_mod_init(void) ...@@ -1274,7 +1274,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1796,7 +1796,7 @@ static int __init sd_mod_init(void) ...@@ -1796,7 +1796,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
info("registered"); info("registered");
return 0; return 0;
} }
......
...@@ -1095,7 +1095,7 @@ static int __init sd_mod_init(void) ...@@ -1095,7 +1095,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -2213,7 +2213,7 @@ static int __init sd_mod_init(void) ...@@ -2213,7 +2213,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -865,7 +865,7 @@ static int __init sd_mod_init(void) ...@@ -865,7 +865,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -774,7 +774,7 @@ static int __init sd_mod_init(void) ...@@ -774,7 +774,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1668,7 +1668,7 @@ static int __init sd_mod_init(void) ...@@ -1668,7 +1668,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1199,7 +1199,7 @@ static int __init sd_mod_init(void) ...@@ -1199,7 +1199,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -563,7 +563,7 @@ static int __init sd_mod_init(void) ...@@ -563,7 +563,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
info("registered"); info("registered");
return 0; return 0;
} }
......
...@@ -503,7 +503,7 @@ static int __init sd_mod_init(void) ...@@ -503,7 +503,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1467,7 +1467,7 @@ static int __init sd_mod_init(void) ...@@ -1467,7 +1467,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -1174,7 +1174,7 @@ static int __init sd_mod_init(void) ...@@ -1174,7 +1174,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -572,7 +572,7 @@ static int __init sd_mod_init(void) ...@@ -572,7 +572,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -2462,7 +2462,7 @@ static int __init sd_mod_init(void) ...@@ -2462,7 +2462,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
...@@ -7602,7 +7602,7 @@ static int __init sd_mod_init(void) ...@@ -7602,7 +7602,7 @@ static int __init sd_mod_init(void)
int ret; int ret;
ret = usb_register(&sd_driver); ret = usb_register(&sd_driver);
if (ret < 0) if (ret < 0)
return -1; return ret;
PDEBUG(D_PROBE, "registered"); PDEBUG(D_PROBE, "registered");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment