summaryrefslogtreecommitdiff
path: root/src/xf86Elo.c
diff options
context:
space:
mode:
authorTerry Lambert <tlambert@chromium.org>2011-07-15 17:23:20 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-18 11:49:27 +1000
commit38bcc4322a378affb5ca142ff39df81908e990eb (patch)
tree6966da4e215c7ee3cfc062c9134524a3f7c9b8e9 /src/xf86Elo.c
parent55f337f61fdcb2d7ec77ec42d1b8b700d467196e (diff)
Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/xf86Elo.c')
-rw-r--r--src/xf86Elo.c2
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;
}
}