diff options
author | Geert Uytterhoeven <[email protected]> | 2015-02-27 15:51:51 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-02-28 09:57:51 -0800 |
commit | 39ea34cc07fb1ca8059239290967e006bbdacceb (patch) | |
tree | 458d40c14e47201c1e9c6e42a54d68f7083a5874 /scripts/gdb | |
parent | 682354d4e0bf9a28f11b52ef9be7fb38b901bd5c (diff) |
rtc: ds1685: remove superfluous checks for out-of-range u8 values
drivers/rtc/rtc-ds1685.c: In function `ds1685_rtc_read_alarm':
drivers/rtc/rtc-ds1685.c:402: warning: comparison is always true due to limited range of data type
drivers/rtc/rtc-ds1685.c:409: warning: comparison is always true due to limited range of data type
drivers/rtc/rtc-ds1685.c:416: warning: comparison is always true due to limited range of data type
drivers/rtc/rtc-ds1685.c: In function `ds1685_rtc_set_alarm':
drivers/rtc/rtc-ds1685.c:475: warning: comparison is always true due to limited range of data type
drivers/rtc/rtc-ds1685.c:478: warning: comparison is always true due to limited range of data type
drivers/rtc/rtc-ds1685.c:481: warning: comparison is always true due to limited range of data type
u8 cannot contain a value larger than 0xff, hence drop the checks.
Wrapping the checks in unlikely() indicated some sense of humor, though ;-)
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Joshua Kinard <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions