[PATCH] xf86-input-elographics: Return proper default for unknown values in pInfo->device_control.

Terry Lambert tlambert at chromium.org
Fri Jul 15 17:23:20 PDT 2011


Signed-off-by: Terry Lambert <tlambert at chromium.org>
Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
---
 src/xf86Elo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
   }
 }
 
-- 
1.7.3.1



More information about the xorg-devel mailing list