Just after this statement is (possibly) executed, we update the value of
stylus_in_proximity to be equal to 'prox', making this explicit setting
useless.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 2.6.30/wacom_wac.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/2.6.30/wacom_wac.c b/2.6.30/wacom_wac.c
index bd93cf7..ba0a244 100644
--- a/2.6.30/wacom_wac.c
+++ b/2.6.30/wacom_wac.c
@@ -1537,7 +1537,6 @@ static int wacom_bpt_pen(struct wacom_wac *wacom)
                        wacom->tool[0] = BTN_TOOL_PEN;
                        wacom->id[0] = STYLUS_DEVICE_ID;
                }
-               wacom->shared->stylus_in_proximity = true;
        }
 
        wacom->shared->stylus_in_proximity = prox;
-- 
2.17.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to