aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/synaptics.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2021-01-19 18:43:11 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-01-19 19:03:11 -0800
commita1ba9c2986e4ad3157f0dd6a6aad18cd210d2ffa (patch)
tree10a08e2ae745c44c037e258348a42dc4b8c71032 /drivers/input/mouse/synaptics.c
parentInput: omap4-keypad - implement errata check for lost key-up events (diff)
downloadlinux-dev-a1ba9c2986e4ad3157f0dd6a6aad18cd210d2ffa.tar.xz
linux-dev-a1ba9c2986e4ad3157f0dd6a6aad18cd210d2ffa.zip
Input: synaptics - replace NOOP with suitable commentary
Fixes the following W=1 kernel build warning(s): drivers/input/mouse/synaptics.c: In function ‘synaptics_process_packet’: drivers/input/mouse/synaptics.c:1110:6: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20210114152323.2382283-2-lee.jones@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/synaptics.c')
-rw-r--r--drivers/input/mouse/synaptics.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 8fb7b4385ded..ffad142801b3 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -1106,8 +1106,11 @@ static void synaptics_process_packet(struct psmouse *psmouse)
num_fingers = hw.w + 2;
break;
case 2:
- if (SYN_MODEL_PEN(info->model_id))
- ; /* Nothing, treat a pen as a single finger */
+ /*
+ * SYN_MODEL_PEN(info->model_id): even if
+ * the device supports pen, we treat it as
+ * a single finger.
+ */
break;
case 4 ... 15:
if (SYN_CAP_PALMDETECT(info->capabilities))