Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbddd199 authored by Takashi Iwai's avatar Takashi Iwai Committed by Dmitry Torokhov
Browse files

Input: synaptics - fix wrong dimensions check



The commit 83ba9ea8 ommitted the return
line for the old synaptics model accidentally.  This resulted in a wrong
check, namely, the dimensions are checked for the old devices that don't
support the query properly.

This patch adds the return line back.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c59690fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@ static int synaptics_resolution(struct psmouse *psmouse)
	unsigned char max[3];

	if (SYN_ID_MAJOR(priv->identity) < 4)
		return 0;

	if (synaptics_send_cmd(psmouse, SYN_QUE_RESOLUTION, res) == 0) {
		if (res[0] != 0 && (res[1] & 0x80) && res[2] != 0) {