mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
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>
This commit is contained in:
parent
fd8135b6f8
commit
4f0794c0ac
1 changed files with 0 additions and 3 deletions
|
@ -160,9 +160,6 @@ static void cros_ec_keyb_process(struct cros_ec_keyb *ckdev,
|
||||||
int col, row;
|
int col, row;
|
||||||
int new_state;
|
int new_state;
|
||||||
int old_state;
|
int old_state;
|
||||||
int num_cols;
|
|
||||||
|
|
||||||
num_cols = len;
|
|
||||||
|
|
||||||
if (ckdev->ghost_filter && cros_ec_keyb_has_ghosting(ckdev, kb_state)) {
|
if (ckdev->ghost_filter && cros_ec_keyb_has_ghosting(ckdev, kb_state)) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue