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

Commit 0c54fe74 authored by Colin Ian King's avatar Colin Ian King Committed by Dmitry Torokhov
Browse files

Input: synaptics-rmi4 - check for non zero version logically dead code



version is a u8, the check for version > 0 means that version can only
be zero, so the subsequent check for version != 0 is never true and
hence is redudant code and can be removed.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent b29c139a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -441,8 +441,6 @@ static int rmi_f34_probe(struct rmi_function *fn)
	/* v5 code only supported version 0, try V7 probe */
	if (version > 0)
		return rmi_f34v7_probe(f34);
	else if (version != 0)
		return -ENODEV;

	f34->bl_version = 5;