diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-09-20 21:04:04 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-09-20 21:15:58 +0200 |
commit | 1dbc080c9ef6bcfba652ef0d6ae919b8c7c85a1d (patch) | |
tree | a8c6ac03f394d5b9637a1df30a70ba372d9515ce /Documentation/DocBook/libata.tmpl | |
parent | Input: i8042 - add Gigabyte P57 to the keyboard reset table (diff) | |
download | linux-1dbc080c9ef6bcfba652ef0d6ae919b8c7c85a1d.tar.xz linux-1dbc080c9ef6bcfba652ef0d6ae919b8c7c85a1d.zip |
Input: adxl34x - do not treat FIFO_MODE() as boolean
FIFO_MODE() is a macro expression with a '<<' operator, which gcc points
out could be misread as a '<':
drivers/input/misc/adxl34x.c: In function 'adxl34x_probe':
drivers/input/misc/adxl34x.c:799:36: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context]
While utility of this warning is being disputed (Chief Penguin: "This
warning is clearly pure garbage.") FIFO_MODE() extracts range of values,
with 0 being FIFO_BYPASS, and not something that is logically boolean.
This converts the test to an explicit comparison with FIFO_BYPASS,
making it clearer to gcc and the reader what is intended.
Fixes: e27c729219ad ("Input: add driver for ADXL345/346 Digital Accelerometers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/DocBook/libata.tmpl')
0 files changed, 0 insertions, 0 deletions