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:
dbed8a8
)
[media] cx231xx: stop double error reporting
author
Peter Rosin
<
[email protected]
>
Mon, 3 Apr 2017 07:35:31 +0000
(09:35 +0200)
committer
Peter Rosin
<
[email protected]
>
Wed, 19 Apr 2017 10:49:29 +0000
(12:49 +0200)
i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: Wolfram Sang <
[email protected]
>
Reviewed-by: Mauro Carvalho Chehab <
[email protected]
>
Signed-off-by: Peter Rosin <
[email protected]
>
drivers/media/usb/cx231xx/cx231xx-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/cx231xx/cx231xx-i2c.c
b/drivers/media/usb/cx231xx/cx231xx-i2c.c
index 35e9acfe63d3bff8e9b349740a6ff5bcad95cf24..dff514e147daf98417f45e4cf1b1b86786ee2e55 100644
(file)
--- a/
drivers/media/usb/cx231xx/cx231xx-i2c.c
+++ b/
drivers/media/usb/cx231xx/cx231xx-i2c.c
@@
-576,17
+576,10
@@
int cx231xx_i2c_mux_create(struct cx231xx *dev)
int cx231xx_i2c_mux_register(struct cx231xx *dev, int mux_no)
{
- int rc;
-
- rc = i2c_mux_add_adapter(dev->muxc,
- 0,
- mux_no /* chan_id */,
- 0 /* class */);
- if (rc)
- dev_warn(dev->dev,
- "i2c mux %d register FAILED\n", mux_no);
-
- return rc;
+ return i2c_mux_add_adapter(dev->muxc,
+ 0,
+ mux_no /* chan_id */,
+ 0 /* class */);
}
void cx231xx_i2c_mux_unregister(struct cx231xx *dev)