Arnd Bergmann
921edf312a
ide: avoid warning for timings calculation
...
gcc-7 warns about the result of a constant multiplication used as
a boolean:
drivers/ide/ide-timings.c: In function 'ide_timing_quantize':
drivers/ide/ide-timings.c:112:24: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
q->setup = EZ(t->setup * 1000, T);
This slightly rearranges the macro to simplify the code and avoid
the warning at the same time.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-21 04:37:22 +01:00
..
2013-01-03 15:57:03 -08:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2014-10-15 14:27:38 -04:00
2014-10-20 16:20:38 +02:00
2013-11-26 11:09:07 +01:00
2013-01-03 15:57:03 -08:00
2016-07-26 15:25:30 -07:00
2015-04-17 15:32:07 -04:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-11-14 18:21:25 -05:00
2013-01-03 15:57:03 -08:00
2013-07-10 12:09:10 -07:00
2012-10-06 03:04:41 +09:00
2014-10-20 16:20:38 +02:00
2016-12-24 11:46:01 -08:00
2012-10-06 03:04:41 +09:00
2016-03-20 16:59:27 -04:00
2014-10-20 16:20:38 +02:00
2017-02-27 18:43:47 -08:00
2017-06-20 19:27:14 -06:00
2017-06-20 19:27:14 -06:00
2017-01-27 15:08:35 -07:00
2017-06-20 19:27:14 -06:00
2016-10-28 08:45:17 -06:00
2012-06-12 15:51:41 -07:00
2017-06-20 19:27:14 -06:00
2013-04-09 14:13:32 -04:00
2017-06-20 19:27:14 -06:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2013-04-09 14:13:32 -04:00
2017-06-09 09:27:32 -06:00
2016-06-27 12:26:08 -07:00
2017-01-09 15:27:59 -05:00
2017-06-09 09:27:32 -06:00
2017-06-20 19:27:14 -06:00
2016-12-24 11:46:01 -08:00
2015-03-27 11:59:22 -04:00
2017-06-20 19:27:14 -06:00
2013-01-03 15:57:03 -08:00
2014-01-28 23:35:09 -08:00
2017-06-20 19:27:14 -06:00
2015-03-18 22:39:17 +01:00
2017-06-20 19:27:14 -06:00
2016-12-24 11:46:01 -08:00
2016-01-18 14:12:33 -05:00
2013-10-16 18:40:57 -07:00
2017-06-20 19:27:14 -06:00
2017-06-20 19:27:14 -06:00
2017-07-21 04:37:22 +01:00
2016-01-18 14:12:33 -05:00
2016-01-18 14:12:33 -05:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2017-01-31 10:53:05 -07:00
2015-04-14 13:07:17 -04:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2017-02-27 20:43:26 -05:00
2016-02-05 16:29:28 -06:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2016-07-26 15:25:31 -07:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2015-04-17 15:32:07 -04:00
2015-04-17 15:32:07 -04:00
2017-06-09 09:27:32 -06:00
2017-01-27 15:08:35 -07:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2016-01-18 14:12:33 -05:00
2014-10-20 16:20:38 +02:00
2014-10-20 16:20:38 +02:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00