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

diff --git a/src/DigitalEdge.c b/src/DigitalEdge.c
index 45b4d80..29d20ff 100644
--- a/src/DigitalEdge.c
+++ b/src/DigitalEdge.c
@@ -675,8 +675,7 @@ static int xf86SumProc(DeviceIntPtr pSum, int what)
 
     default:
 	ErrorF("unsupported mode=%d\n", what);
-	return !Success;
-	break;
+	return BadValue;
     }
     DBG(2, ErrorF("END   xf86SumProc Success what=%d dev=%p priv=%p\n",
 		  what, (void *)pSum, (void *)priv));
-- 
1.7.3.1



More information about the xorg-devel mailing list