aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangcheng Deng <[email protected]>2022-04-20 13:55:07 -0700
committerDmitry Torokhov <[email protected]>2022-04-24 18:24:59 -0700
commit0a112e7c681ca311b241c50a75d9206f301ca21c (patch)
tree4a204014e2f3fe228716a3aee2f895e809a22814
parentc8eefa0f2a3ba3d94cad691a698017d5a9525f6a (diff)
Input: remove unneeded variable in input_inhibit_device()
Remove unneeded variable used to store return value. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Changcheng Deng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r--drivers/input/input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 6428cdacf534..0e7f3d065b09 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1793,8 +1793,6 @@ EXPORT_SYMBOL(input_reset_device);
static int input_inhibit_device(struct input_dev *dev)
{
- int ret = 0;
-
mutex_lock(&dev->mutex);
if (dev->inhibited)
@@ -1816,7 +1814,7 @@ static int input_inhibit_device(struct input_dev *dev)
out:
mutex_unlock(&dev->mutex);
- return ret;
+ return 0;
}
static int input_uninhibit_device(struct input_dev *dev)