diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-01-01 11:02:07 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:29 -0400 |
commit | f69e9529ed96ff917096d0b7b3015c8d8ea5750d (patch) | |
tree | 8ae6cf67fa996e3e77b7853e6d7bab4599b019b4 /drivers/media/video/gspca/conex.c | |
parent | 766231ab859546edd459242c2dbd805bc7fd446e (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/conex.c')
-rw-r--r-- | drivers/media/video/gspca/conex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index a7088f60bcd0..825342be41fc 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -1028,7 +1028,9 @@ static struct usb_driver sd_driver = { | |||
1028 | /* -- module insert / remove -- */ | 1028 | /* -- module insert / remove -- */ |
1029 | static int __init sd_mod_init(void) | 1029 | static int __init sd_mod_init(void) |
1030 | { | 1030 | { |
1031 | if (usb_register(&sd_driver) < 0) | 1031 | int ret; |
1032 | ret = usb_register(&sd_driver); | ||
1033 | if (ret < 0) | ||
1032 | return -1; | 1034 | return -1; |
1033 | PDEBUG(D_PROBE, "registered"); | 1035 | PDEBUG(D_PROBE, "registered"); |
1034 | return 0; | 1036 | return 0; |