diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-07-14 11:25:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-21 05:37:22 +0200 |
commit | 921edf312a6a20be16cf2b60e0dec3dce35e5cb9 (patch) | |
tree | de7a67d798a76de632c56effdf29109fc2af760a /arch/sh | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-921edf312a6a20be16cf2b60e0dec3dce35e5cb9.tar.xz linux-921edf312a6a20be16cf2b60e0dec3dce35e5cb9.zip |
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>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions