From: Lars-Peter Clausen Date: Sat, 9 Mar 2013 08:16:48 +0000 (+0000) Subject: i2c: Ignore the return value of i2c_del_mux_adapter() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~62^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a205e63d12716bd871b6a5746b6b624c5965a059;p=pandora-kernel.git 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 Acked-by: Guenter Roeck Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed