hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/input/keyboard/tca8418_keypad.c
....@@ -266,7 +266,7 @@
266266 struct tca8418_keypad *keypad_data;
267267 struct input_dev *input;
268268 u32 rows = 0, cols = 0;
269
- int error, row_shift, max_keys;
269
+ int error, row_shift;
270270 u8 reg;
271271
272272 /* Check i2c driver capabilities */
....@@ -291,7 +291,6 @@
291291 }
292292
293293 row_shift = get_count_order(cols);
294
- max_keys = rows << row_shift;
295294
296295 /* Allocate memory for keypad_data and input device */
297296 keypad_data = devm_kzalloc(dev, sizeof(*keypad_data), GFP_KERNEL);