Geert Uytterhoeven
39ea34cc07
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 <geert@linux-m68k.org >
Acked-by: Joshua Kinard <kumba@gentoo.org >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2015-02-28 09:57:51 -08:00
..
2014-11-21 12:00:00 -08:00
2015-01-23 17:21:57 -08:00
2015-01-23 17:21:55 -08:00
2015-02-19 10:36:45 -08:00
2015-02-16 17:56:05 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-12-14 16:10:09 -08:00
2015-02-13 21:21:43 -08:00
2015-02-13 21:21:43 -08:00
2014-04-03 16:21:22 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-02-13 21:21:43 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-29 16:33:14 -07:00
2014-10-20 16:21:31 +02:00
2014-10-14 02:18:19 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-01-23 17:21:56 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-04-03 16:21:16 -07:00
2014-12-10 17:41:15 -08:00
2014-08-08 15:57:19 -07:00
2014-04-03 16:21:23 -07:00
2014-12-10 17:41:15 -08:00
2014-04-03 16:21:17 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-04-03 16:21:16 -07:00
2015-02-28 09:57:51 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-04-03 16:21:22 -07:00
2014-08-08 15:57:19 -07:00
2015-01-29 19:16:40 +01:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-06-06 16:08:08 -07:00
2015-02-13 21:21:43 -08:00
2015-02-16 17:56:02 -08:00
2015-02-16 17:56:02 -08:00
2014-10-20 16:21:31 +02:00
2014-11-21 12:00:00 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-06-06 16:08:07 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-06-06 16:08:08 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-12-14 16:10:09 -08:00
2014-11-17 18:04:01 +11:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-02-13 21:21:42 -08:00
2014-01-23 16:37:00 -08:00
2014-05-06 13:04:58 -07:00
2014-12-10 17:41:15 -08:00
2014-10-14 02:18:17 +02:00
2014-08-08 15:57:20 -07:00
2014-11-03 19:53:56 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-06-06 16:08:09 -07:00
2014-10-20 16:21:31 +02:00
2015-02-13 21:21:43 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-14 02:18:19 +02:00
2014-04-03 16:21:24 -07:00
2014-04-03 16:21:18 -07:00
2014-01-23 16:37:00 -08:00
2014-11-03 19:53:56 -08:00
2015-01-26 13:37:19 -08:00
2014-06-06 16:08:09 -07:00
2014-10-20 16:21:31 +02:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-04-03 16:21:18 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-09-19 12:39:19 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-04-03 16:21:16 -07:00
2014-10-20 16:21:31 +02:00
2015-01-23 17:21:57 -08:00