]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-max6900.c: remove redundant checks
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 5 Nov 2013 05:57:08 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:08 +0000 (16:57 +1100)
commitec2b22401ca0b3d4b01786d459dfa27e320427f5
treec04b22c1030bdfa86c2e3628a90e88ab17a78b8c
parent901bb9b8f4a333e95a51c52a5259272a3a109369
drivers/rtc/rtc-max6900.c: remove redundant checks

i2c_smbus_write_byte_data() returns negative errno on failure or 0 on
success.  Return the value obtained from it directly.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-max6900.c