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

Input: surface3_spi - remove set but unused variable 'timestamp'

Fixes the following W=1 kernel build warning(s):

drivers/input/touchscreen/surface3_spi.c: In function ‘surface3_spi_process_touch’:
drivers/input/touchscreen/surface3_spi.c:97:6: warning: variable ‘timestamp’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20210114152323.2382283-5-lee.jones@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Lee Jones and committed by
Dmitry Torokhov
e664f002 33f93726

-2
-2
drivers/input/touchscreen/surface3_spi.c
··· 94 94 95 95 static void surface3_spi_process_touch(struct surface3_ts_data *ts_data, u8 *data) 96 96 { 97 - u16 timestamp; 98 97 unsigned int i; 99 - timestamp = get_unaligned_le16(&data[15]); 100 98 101 99 for (i = 0; i < 13; i++) { 102 100 struct surface3_ts_data_finger *finger;