summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-07 00:45:34 +0300
committerTejun Heo <tj@kernel.org>2017-09-07 23:33:00 +0300
commit23e4c67ae13da7549a54f4e8c0014f48b2ef5204 (patch)
tree0ffe6bd487ecc6498272308b109abaea8b29c656 /drivers/ata/libata-eh.c
parentc0da4fa0d1a54495d6055c009ac46b76d1da2c86 (diff)
downloadlinux-23e4c67ae13da7549a54f4e8c0014f48b2ef5204.tar.xz
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>
Diffstat (limited to 'drivers/ata/libata-eh.c')
0 files changed, 0 insertions, 0 deletions