aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-04 15:53:42 +0000
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-07-04 16:08:12 +0000
commit4f0794c0ac0898a009fbce3db647092976484ee1 (patch)
tree1d5ecbddf0befc6bd4b18a6b0662baf9daf594a6 /drivers
parentInput: eeti - fix link to documentation and email address in header (diff)
downloadlinux-dev-4f0794c0ac0898a009fbce3db647092976484ee1.tar.xz
linux-dev-4f0794c0ac0898a009fbce3db647092976484ee1.zip
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 <colin.king@canonical.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyboard/cros_ec_keyb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
index 820bebad519a..81be6f781f0b 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)) {
/*