Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: remove unneeded variable in input_inhibit_device()

Remove unneeded variable used to store return value.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Link: https://lore.kernel.org/r/20220419064255.2563333-1-deng.changcheng@zte.com.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Changcheng Deng and committed by
Dmitry Torokhov
0a112e7c c8eefa0f

+1 -3
+1 -3
drivers/input/input.c
··· 1793 1793 1794 1794 static int input_inhibit_device(struct input_dev *dev) 1795 1795 { 1796 - int ret = 0; 1797 - 1798 1796 mutex_lock(&dev->mutex); 1799 1797 1800 1798 if (dev->inhibited) ··· 1814 1816 1815 1817 out: 1816 1818 mutex_unlock(&dev->mutex); 1817 - return ret; 1819 + return 0; 1818 1820 } 1819 1821 1820 1822 static int input_uninhibit_device(struct input_dev *dev)