diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-23 10:02:50 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-23 14:49:37 -0700 |
commit | 996b9eedd061752bfa0f3a10381515d67db26b3e (patch) | |
tree | d8bc039cf364d2f5980a1ee9d8acc31eef82e706 /crypto/skcipher.c | |
parent | cf5cd9d4480a87da78768718cac194a71079b5cb (diff) |
Input: synaptics - do not mix logical and bitwise operations
Let's stop using !!x to reduce value of trackstick button expression to 0/1
and use shift instead. This removes the following sparse warning:
CHECK drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.c:943:79: warning: dubious: !x | y
Also, the bits we are testing are not capabilities, so lets drop "_CAP"
suffix from macro names.
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'crypto/skcipher.c')
0 files changed, 0 insertions, 0 deletions