projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd72cb3
)
V4L/DVB (11447): gspca - mr97310a: Return good error code in mod_init.
author
Alexey Klimov
<
[email protected]
>
Fri, 27 Mar 2009 18:57:46 +0000
(15:57 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 16 Jun 2009 21:20:23 +0000
(18:20 -0300)
Signed-off-by: Alexey Klimov <
[email protected]
>
Signed-off-by: Jean-Francois Moine <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/gspca/mr97310a.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/mr97310a.c
b/drivers/media/video/gspca/mr97310a.c
index 2a901a4a6f0039c54f607073b67282ffc7409874..f9da55b20fa37cac2b219fef821e1123eb4b1d24 100644
(file)
--- a/
drivers/media/video/gspca/mr97310a.c
+++ b/
drivers/media/video/gspca/mr97310a.c
@@
-347,8
+347,11
@@
static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
- if (usb_register(&sd_driver) < 0)
- return -1;
+ int ret;
+
+ ret = usb_register(&sd_driver);
+ if (ret < 0)
+ return ret;
PDEBUG(D_PROBE, "registered");
return 0;
}