aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/vc032x.c
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2009-01-01 11:02:07 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:29 -0400
commitf69e9529ed96ff917096d0b7b3015c8d8ea5750d (patch)
tree8ae6cf67fa996e3e77b7853e6d7bab4599b019b4 /drivers/media/video/gspca/vc032x.c
parent766231ab859546edd459242c2dbd805bc7fd446e (diff)
V4L/DVB (10335): gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.
Introduce int ret and check it value after call to usb_register(). 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/vc032x.c')
-rw-r--r--drivers/media/video/gspca/vc032x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index ab5a25cfc69e..0f475ec2ab93 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -2459,7 +2459,9 @@ static struct usb_driver sd_driver = {
2459/* -- module insert / remove -- */ 2459/* -- module insert / remove -- */
2460static int __init sd_mod_init(void) 2460static int __init sd_mod_init(void)
2461{ 2461{
2462 if (usb_register(&sd_driver) < 0) 2462 int ret;
2463 ret = usb_register(&sd_driver);
2464 if (ret < 0)
2463 return -1; 2465 return -1;
2464 PDEBUG(D_PROBE, "registered"); 2466 PDEBUG(D_PROBE, "registered");
2465 return 0; 2467 return 0;