From b3741a1687a53edc4e7115b886dc4796f3096f1e Mon Sep 17 00:00:00 2001 From: Jason Gerecke Date: Tue, 15 Feb 2022 08:06:52 -0800 Subject: 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 --- src/x11/xf86WacomProperties.c | 3 --- 1 file changed, 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 -- cgit v1.2.1