summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-01-12 09:19:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-01-17 09:12:20 +1000
commit6de28b4ca980e0fc6a77dd9c7144d9da9fb03d69 (patch)
tree71b4870513b491935b2bd09a039e126be36160f6
parentc5b605d376c69daf902a3d66ebc2d7df9b028ac8 (diff)
downloadxf86-input-wacom-6de28b4ca980e0fc6a77dd9c7144d9da9fb03d69.tar.gz
Remove an unused variable
This was always set to nbbuttons, so we don't need a separate variable here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmConfig.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c
index ff6fab2..c1e84f9 100644
--- a/src/wcmConfig.c
+++ b/src/wcmConfig.c
@@ -982,7 +982,7 @@ static int wcmInitAxes(WacomDevicePtr priv)
Bool wcmDevInit(WacomDevicePtr priv)
{
WacomCommonPtr common = priv->common;
- int nbaxes, nbbuttons, nbkeys;
+ int nbaxes, nbbuttons;
/* Detect tablet configuration, if possible */
if (priv->common->wcmModel->DetectConfig)
@@ -999,12 +999,10 @@ Bool wcmDevInit(WacomDevicePtr priv)
/* if more than 3 buttons, offset by the four scroll buttons,
* otherwise, alloc 7 buttons for scroll wheel. */
nbbuttons = min(max(nbbuttons + 4, 7), WCM_MAX_BUTTONS);
- nbkeys = nbbuttons; /* Same number of keys since any button may be
- * configured as an either mouse button or key */
DBG(10, priv,
- "(type %d) %d buttons, %d keys, %d axes\n",
- priv->type, nbbuttons, nbkeys, nbaxes);
+ "(type %d) %d buttons, %d axes\n",
+ priv->type, nbbuttons, nbaxes);
if (!wcmInitButtons(priv, nbbuttons))
{