Skip to content

Commit 47fcd0f

Browse files
Colin Ian Kingdtor
authored andcommitted
Input: alps - remove redundant assignment to variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent d431b9e commit 47fcd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/mouse/alps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ static int alps_monitor_mode(struct psmouse *psmouse, bool enable)
19291929
static int alps_absolute_mode_v6(struct psmouse *psmouse)
19301930
{
19311931
u16 reg_val = 0x181;
1932-
int ret = -1;
1932+
int ret;
19331933

19341934
/* enter monitor mode, to write the register */
19351935
if (alps_monitor_mode(psmouse, true))

0 commit comments

Comments
 (0)