kernel/drivers/input/keyboard/tca8418_keypad.c
.. .. @@ -266,7 +266,7 @@ 266 266 struct tca8418_keypad *keypad_data; 267 267 struct input_dev *input; 268 268 u32 rows = 0, cols = 0; 269 - int error, row_shift, max_keys;269 + int error, row_shift;270 270 u8 reg; 271 271 272 272 /* Check i2c driver capabilities */ .. .. @@ -291,7 +291,6 @@ 291 291 } 292 292 293 293 row_shift = get_count_order(cols); 294 - max_keys = rows << row_shift;295 294 296 295 /* Allocate memory for keypad_data and input device */ 297 296 keypad_data = devm_kzalloc(dev, sizeof(*keypad_data), GFP_KERNEL);