summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/sunplus.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-01 17:02:07 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-01-01 17:02:07 +0100
commit9afdb51d6cd6f5d7d5ad2841fbd24db72f8e0a41 (patch)
tree5d03792901b52c0bb233e18fd1ce0032a836535e /linux/drivers/media/video/gspca/sunplus.c
parent50ddb76ea0fd5b75b96af9efdbb4e54740286732 (diff)
downloadmediapointer-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/sunplus.c')
-rw-r--r--linux/drivers/media/video/gspca/sunplus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/sunplus.c b/linux/drivers/media/video/gspca/sunplus.c
index f86c81435..8b725532d 100644
--- a/linux/drivers/media/video/gspca/sunplus.c
+++ b/linux/drivers/media/video/gspca/sunplus.c
@@ -1495,7 +1495,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;