[PATCH] xf86-input-hyperpen: Return proper default for unknown values in pInfo->device_control.
Terry Lambert
tlambert at chromium.org
Fri Jul 15 17:23:21 PDT 2011
Signed-off-by: Terry Lambert <tlambert at chromium.org>
Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
---
src/xf86HyperPen.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/xf86HyperPen.c b/src/xf86HyperPen.c
index 45ddfca..b0e5ac9 100644
--- a/src/xf86HyperPen.c
+++ b/src/xf86HyperPen.c
@@ -729,8 +729,7 @@ xf86HypProc(DeviceIntPtr pHyp, int what)
default:
ErrorF("unsupported mode=%d\n", what);
- return !Success;
- break;
+ return BadValue;
}
DBG(2, ErrorF("END xf86HypProc Success what=%d dev=%p priv=%p\n",
what, (void *)pHyp, (void *)priv));
--
1.7.3.1
More information about the xorg-devel
mailing list