diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-01 17:02:07 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-01-01 17:02:07 +0100 |
commit | 9afdb51d6cd6f5d7d5ad2841fbd24db72f8e0a41 (patch) | |
tree | 5d03792901b52c0bb233e18fd1ce0032a836535e /linux/drivers/media/video/gspca/t613.c | |
parent | 50ddb76ea0fd5b75b96af9efdbb4e54740286732 (diff) | |
download | mediapointer-dvb-s2-9afdb51d6cd6f5d7d5ad2841fbd24db72f8e0a41.tar.gz mediapointer-dvb-s2-9afdb51d6cd6f5d7d5ad2841fbd24db72f8e0a41.tar.bz2 |
gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.
From: Alexey Klimov <klimov.linux@gmail.com>
Introduce int ret and check it value after call to usb_register().
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/gspca/t613.c')
-rw-r--r-- | linux/drivers/media/video/gspca/t613.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/t613.c b/linux/drivers/media/video/gspca/t613.c index 6cb6e3ffe..cf07ef91b 100644 --- a/linux/drivers/media/video/gspca/t613.c +++ b/linux/drivers/media/video/gspca/t613.c @@ -1175,7 +1175,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; |