[PATCH] xf86-input-fpit: 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/xf86Fpit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index e7e4e1a..78b44a2 100644
--- a/src/xf86Fpit.c
+++ b/src/xf86Fpit.c
@@ -495,7 +495,7 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
 		return Success;
 	default:
 		ErrorF("unsupported mode=%d\n", mode);
-		return !Success;
+		return BadValue;
 	}
 }
 
-- 
1.7.3.1



More information about the xorg-devel mailing list