diff options
| author | Mark Brown <[email protected]> | 2008-11-06 12:53:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-11-06 15:41:17 -0800 |
| commit | 9e3a4afd5a66f9047e30ba225525e6ff01612dc4 (patch) | |
| tree | 1f32bb96e97fb7ad4a0fc94b096cc30e308870ab /tools/perf/scripts/python | |
| parent | a564738c1c9c7b9ed696bf4116267789201ac8ac (diff) | |
rtc: fix handling of missing tm_year data when reading alarms
When fixing up invalid years rtc_read_alarm() was calling rtc_valid_tm()
as a boolean but rtc_valid_tm() returns zero on success or a negative
number if the time is not valid so the test was inverted.
Signed-off-by: Mark Brown <[email protected]>
Acked-by: Alessandro Zummo <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions