Message ID | 20210225091830.545-1-angkery@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Input: Remove unneeded variable | expand |
diff --git a/drivers/input/input.c b/drivers/input/input.c index ccaeb24..8cdc3fe 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1746,8 +1746,6 @@ void input_reset_device(struct input_dev *dev) static int input_inhibit_device(struct input_dev *dev) { - int ret = 0; - mutex_lock(&dev->mutex); if (dev->inhibited) @@ -1769,7 +1767,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)