When I first saw this, I thought somebody forgot to put an else clause here; I completely missed that tiny return statement. This makes the reality a little clearer.
Signed-off-by: Jason Gerecke <killert...@gmail.com> --- src/wcmCommon.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 39ae983..2548ccf 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -411,13 +411,14 @@ static void sendWheelStripEvents(InputInfoPtr pInfo, const WacomDeviceState* ds, xf86PostButtonEventP(pInfo->dev, is_absolute(pInfo), fakeButton & AC_CODE, 0, first_val, num_vals, VCOPY(valuators, num_vals)); - return; } - - sendAction(pInfo, 1, fakeKey, ARRAY_SIZE(priv->wheel_keys[0]), - first_val, num_vals, valuators); - sendAction(pInfo, 0, fakeKey, ARRAY_SIZE(priv->wheel_keys[0]), - first_val, num_vals, valuators); + else + { + sendAction(pInfo, 1, fakeKey, ARRAY_SIZE(priv->wheel_keys[0]), + first_val, num_vals, valuators); + sendAction(pInfo, 0, fakeKey, ARRAY_SIZE(priv->wheel_keys[0]), + first_val, num_vals, valuators); + } } /***************************************************************************** -- 1.7.4.1 ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel