Causing this function to always return 0 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/wcmUSB.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wcmUSB.c b/src/wcmUSB.c index e403093..64d6105 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -1497,9 +1497,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++) { -- 1.8.0.2 ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel