This doesn't have a functional change, but it makes the code a tad easier to read.
Signed-off-by: Peter Hutterer <[email protected]> --- src/wcmValidateDevice.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c index 8773e17..5319716 100644 --- a/src/wcmValidateDevice.c +++ b/src/wcmValidateDevice.c @@ -237,11 +237,9 @@ int wcmDeviceTypeKeys(LocalDevicePtr local, unsigned long* keys) /* id < 0x008 are only penabled */ if (id > 0x007) - { keys[LONG(BTN_TOOL_DOUBLETAP)] |= BIT(BTN_TOOL_DOUBLETAP); - if (id > 0x0a) - keys[LONG(BTN_TOOL_TRIPLETAP)] |= BIT(BTN_TOOL_TRIPLETAP); - } + if (id > 0x0a) + keys[LONG(BTN_TOOL_TRIPLETAP)] |= BIT(BTN_TOOL_TRIPLETAP); /* no pen 2FGT */ if (id == 0x010) -- 1.6.6 ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
