No negative conditions where not nessary please.
Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmISDV4.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c
index 39cb2ac..dbc0c6a 100644
--- a/src/wcmISDV4.c
+++ b/src/wcmISDV4.c
@@ -794,10 +794,10 @@ static int isdv4Parse(InputInfoPtr pInfo, const unsigned
char* data, int len)
ds = &common->wcmChannel[channel].work;
RESET_RELATIVE(*ds);
- if (common->wcmPktLength != ISDV4_PKGLEN_TPCPEN) /* a touch */
- channel = isdv4ParseTouchPacket(pInfo, data, len, ds);
- else
+ if (common->wcmPktLength == ISDV4_PKGLEN_TPCPEN)
channel = isdv4ParsePenPacket(pInfo, data, len, ds);
+ else /* a touch */
+ channel = isdv4ParseTouchPacket(pInfo, data, len, ds);
if (channel < 0)
return 0;
--
1.7.5.4
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel