mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
Input: samsung-keypad - remove set but unused variable 'var'
Fixes the following W=1 kernel build warning(s): drivers/input/keyboard/samsung-keypad.c: In function ‘samsung_keypad_irq’: drivers/input/keyboard/samsung-keypad.c:149:15: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20201112110204.2083435-3-lee.jones@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
committed by
Dmitry Torokhov
parent
3a54a21541
commit
f1556986ba
@@ -146,13 +146,12 @@ static irqreturn_t samsung_keypad_irq(int irq, void *dev_id)
|
||||
{
|
||||
struct samsung_keypad *keypad = dev_id;
|
||||
unsigned int row_state[SAMSUNG_MAX_COLS];
|
||||
unsigned int val;
|
||||
bool key_down;
|
||||
|
||||
pm_runtime_get_sync(&keypad->pdev->dev);
|
||||
|
||||
do {
|
||||
val = readl(keypad->base + SAMSUNG_KEYIFSTSCLR);
|
||||
readl(keypad->base + SAMSUNG_KEYIFSTSCLR);
|
||||
/* Clear interrupt. */
|
||||
writel(~0x0, keypad->base + SAMSUNG_KEYIFSTSCLR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user