From 38bcc4322a378affb5ca142ff39df81908e990eb Mon Sep 17 00:00:00 2001 From: Terry Lambert Date: Fri, 15 Jul 2011 17:23:20 -0700 Subject: Return proper default for unknown values in pInfo->device_control. Signed-off-by: Terry Lambert Reviewed-by: Stephane Marchesin Signed-off-by: Peter Hutterer --- src/xf86Elo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xf86Elo.c b/src/xf86Elo.c index e779642..b63d351 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -850,7 +850,7 @@ xf86EloControl(DeviceIntPtr dev, default: ErrorF("unsupported mode=%d\n", mode); - return !Success; + return BadValue; } } -- cgit v1.2.3