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
..
2016-07-26 15:25:30 -07:00
2015-04-17 15:32:07 -04:00
2013-11-14 18:21:25 -05:00
2017-02-27 18:43:47 -08:00
2016-06-27 12:26:08 -07:00
2009-03-27 12:46:34 +01:00
2015-03-27 11:59:22 -04:00
2016-01-18 14:12:33 -05:00
2016-01-18 14:12:33 -05:00
2015-04-14 13:07:17 -04:00
2013-01-03 15:57:03 -08:00
2016-01-18 14:12:33 -05:00