diff options
author | Egbert Eich <eich@suse.com> | 2014-02-07 19:36:28 +0100 |
---|---|---|
committer | Egbert Eich <eich@suse.com> | 2014-02-19 14:08:58 +0100 |
commit | 7e56966e917d9389965910c9d28f4047d51d4349 (patch) | |
tree | 91f48f48148f9125b337dabaf2e0b8733a4bfc65 | |
parent | 6fc13b20dc1178c6417c658a1bd6a110fd507244 (diff) |
Remove test if pressure falls below the minPressure
This code is entirely irrelevant as it is called immediately after
rebasePressure() which already ensures that minPressure is the
minimum of minPressure and current pressure unless one mistrusts
the implementation of min().
Signed-off-by: Egbert Eich <eich@suse.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/wcmCommon.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 3cb93ee..97f7765 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -1072,14 +1072,6 @@ normalizePressure(const WacomDevicePtr priv, const WacomDeviceState *ds) double pressure; int p = ds->pressure; - if (p < priv->minPressure) - { - LogMessageVerbSigSafe(X_ERROR, 0, - "%s: Pressure %d lower than expected minimum %d. This is a bug.\n", - priv->pInfo->name, ds->pressure, priv->minPressure); - p = priv->minPressure; - } - /* normalize pressure to 0..FILTER_PRESSURE_RES */ pressure = xf86ScaleAxis(p - priv->minPressure, FILTER_PRESSURE_RES, 0, |