aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJesper Juhl <[email protected]>2011-07-25 17:13:34 -0700
committerLinus Torvalds <[email protected]>2011-07-25 20:57:17 -0700
commit8f6b0dd369868559b384a66aa17512ae5aae2d9b (patch)
treeb98bcc40d158d96fe30af93e5bdede28fbeac77d /tools/perf/util/scripting-engines/trace-event-python.c
parent9a9a54ad7aa2c7420c96c6fd33538f55d81775cb (diff)
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 <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Alexandre Rusev <[email protected]> Cc: "George G. Davis" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions