commit | 23e4c67ae13da7549a54f4e8c0014f48b2ef5204 | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Wed Sep 06 23:45:34 2017 +0200 |
committer | Tejun Heo <tj@kernel.org> | Thu Sep 07 13:33:00 2017 -0700 |
tree | 0ffe6bd487ecc6498272308b109abaea8b29c656 | |
parent | c0da4fa0d1a54495d6055c009ac46b76d1da2c86 [diff] |
ata: avoid gcc-7 warning in ata_timing_quantize gcc-7 warns about the result of a constant multiplication used as a boolean: drivers/ata/libata-core.c: In function 'ata_timing_quantize': drivers/ata/libata-core.c:3164:30: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 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: Tejun Heo <tj@kernel.org>