summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2022-02-15 08:06:52 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2022-02-22 10:41:51 +1000
commitb3741a1687a53edc4e7115b886dc4796f3096f1e (patch)
tree2640ebbb0d2ec374e1ce9a426d0c9b3b149ce939
parentad8b081fab7c5e0889f0102fb41e2458d98c4164 (diff)
downloadxf86-input-wacom-b3741a1687a53edc4e7115b886dc4796f3096f1e.tar.gz
scan-build: Remove dead-store to subproperty variable
This dead-store was introduced in commit 59925bd45b71 ("NONE is not a valid action, and NULL a bad value"). The code which previously relied on subproperty being non-zero was moved into a seperate `else` block that is no longer executed in the case where subproperty is zero. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r--src/x11/xf86WacomProperties.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/x11/xf86WacomProperties.c b/src/x11/xf86WacomProperties.c
index f19380d..410fd5d 100644
--- a/src/x11/xf86WacomProperties.c
+++ b/src/x11/xf86WacomProperties.c
@@ -560,9 +560,6 @@ static int wcmSetActionsProperty(DeviceIntPtr dev, Atom property,
wcmResetWheelAction(priv, index);
wcmInitWheelActionProp(priv, index);
}
-
- if (subproperty != handlers[index])
- subproperty = handlers[index];
}
}
else