Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lee Jones and committed by
Dmitry Torokhov
a1ba9c29 2f6aa61d

+5 -2
+5 -2
drivers/input/mouse/synaptics.c
··· 1106 1106 num_fingers = hw.w + 2; 1107 1107 break; 1108 1108 case 2: 1109 - if (SYN_MODEL_PEN(info->model_id)) 1110 - ; /* Nothing, treat a pen as a single finger */ 1109 + /* 1110 + * SYN_MODEL_PEN(info->model_id): even if 1111 + * the device supports pen, we treat it as 1112 + * a single finger. 1113 + */ 1111 1114 break; 1112 1115 case 4 ... 15: 1113 1116 if (SYN_CAP_PALMDETECT(info->capabilities))