diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-01-01 17:02:07 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 17:42:29 +0200 |
commit | f69e9529ed96ff917096d0b7b3015c8d8ea5750d (patch) | |
tree | 8ae6cf67fa996e3e77b7853e6d7bab4599b019b4 /drivers/media/video/gspca/spca508.c | |
parent | V4L/DVB (10334): gspca - stv06xx: Rework control description. (diff) | |
download | linux-f69e9529ed96ff917096d0b7b3015c8d8ea5750d.tar.xz linux-f69e9529ed96ff917096d0b7b3015c8d8ea5750d.zip |
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/spca508.c')
-rw-r--r-- | drivers/media/video/gspca/spca508.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index f5c045967379..c9d5e6c80912 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c @@ -1665,7 +1665,9 @@ static struct usb_driver sd_driver = { /* -- module insert / remove -- */ static int __init sd_mod_init(void) { - if (usb_register(&sd_driver) < 0) + int ret; + ret = usb_register(&sd_driver); + if (ret < 0) return -1; PDEBUG(D_PROBE, "registered"); return 0; |