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

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


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

diff --git a/src/xf86Summa.c b/src/xf86Summa.c
index b354943..fbc26e6 100644
--- a/src/xf86Summa.c
+++ b/src/xf86Summa.c
@@ -834,8 +834,7 @@ 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