]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: Ignore the return value of i2c_del_mux_adapter()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 9 Mar 2013 08:16:48 +0000 (08:16 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 2 Apr 2013 05:07:29 +0000 (07:07 +0200)
commita205e63d12716bd871b6a5746b6b624c5965a059
treee686069e510da9a800a40a877d5844a9803a569c
parent71546300c8684eb69286604c79624582c16f2f5b
i2c: Ignore the return value of i2c_del_mux_adapter()

i2c_del_mux_adapter() always returns 0. So all checks testing whether it will be
non zero will always evaluate to false and the conditional code is dead code.
This patch updates all callers of i2c_del_mux_adapter() to ignore its return
value and assume that it will always succeed (which it will). A subsequent
patch will make the return type of i2c_del_mux_adapter() void.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pca954x.c