diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-26 00:13:34 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 03:57:17 (GMT) |
commit | 8f6b0dd369868559b384a66aa17512ae5aae2d9b (patch) | |
tree | b98bcc40d158d96fe30af93e5bdede28fbeac77d /fs/xfs/xfs_attr.h | |
parent | 9a9a54ad7aa2c7420c96c6fd33538f55d81775cb (diff) | |
download | linux-8f6b0dd369868559b384a66aa17512ae5aae2d9b.tar.xz |
drivers/rtc/rtc-twl.c: check return value of twl_rtc_write_u8() in twl_rtc_set_time()
We forget to save the return value of the call to
twl_rtc_write_u8(save_control, REG_RTC_CTRL_REG); in 'ret', making the
test of 'ret < 0' dead code since 'ret' then couldn't possibly have
changed since the last test just a few lines above. It also makes us not
detect failures from that specific twl_rtc_write_u8() call.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Rusev <source@mvista.com>
Cc: "George G. Davis" <gdavis@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/xfs/xfs_attr.h')
0 files changed, 0 insertions, 0 deletions