[PATCH] xf86-input-tek4957: Return proper default for unknown values in pInfo->device_control.
Terry Lambert
tlambert at chromium.org
Fri Jul 15 17:23:24 PDT 2011
Signed-off-by: Terry Lambert <tlambert at chromium.org>
Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
---
src/xf86Tek4957.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c
index 110de77..3e80477 100644
--- a/src/xf86Tek4957.c
+++ b/src/xf86Tek4957.c
@@ -494,8 +494,7 @@ TekProc(DeviceIntPtr pDev, int what)
default:
DBG(2,xf86Msg(X_INFO,"Tek4957:TekProc Unsupported mode=%d\n",what));
- return !Success;
- break;
+ return BadValue;
}
return Success;
}
--
1.7.3.1
More information about the xorg-devel
mailing list