From: Colin Ian King Date: Wed, 4 Jul 2018 15:53:42 +0000 (+0000) Subject: Input: cros_ec_keyb - remove redundant variable num_cols X-Git-Tag: v4.19~15^2~12^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f0794c0ac0898a009fbce3db647092976484ee1;p=platform%2Fkernel%2Flinux-rpi.git Input: cros_ec_keyb - remove redundant variable num_cols Variable num_cols is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable ‘num_cols’ set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index 820beba..81be6f7 100644 --- a/drivers/input/keyboard/cros_ec_keyb.c +++ b/drivers/input/keyboard/cros_ec_keyb.c @@ -160,9 +160,6 @@ static void cros_ec_keyb_process(struct cros_ec_keyb *ckdev, int col, row; int new_state; int old_state; - int num_cols; - - num_cols = len; if (ckdev->ghost_filter && cros_ec_keyb_has_ghosting(ckdev, kb_state)) { /*