summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-12-19 13:43:08 +1000
committerJason Gerecke <killertofu@gmail.com>2012-12-19 10:27:10 -0800
commit7e86e9871459c980a95bcea98dd0a2890b0b584a (patch)
treef7db746a800eeb747a3e8e925799e8b5bda8d167
parent5209f14707c7d1446c0987adba74cb46028dbf3c (diff)
downloadxf86-input-wacom-7e86e9871459c980a95bcea98dd0a2890b0b584a.tar.gz
Fix missing braces around condition in refreshDeviceType
Causing this function to always return 0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Ping Cheng <pinglinux@gmail.com> Tested-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r--src/wcmUSB.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index 2f44817..fbb98eb 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1500,9 +1500,10 @@ static int refreshDeviceType(WacomCommonPtr common)
int rc = ioctl(common->fd, EVIOCGKEY(sizeof(keys)), keys);
int i;
- if (rc == -1)
+ if (rc == -1) {
xf86Msg(X_ERROR, "%s: failed to retrieve key bits\n", common->device_path);
return 0;
+ }
for (i = 0; i < KEY_MAX; i++)
{