From 2103d61909c7e6bd345622962df7784a19df72c5 Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Sat, 5 Mar 2011 05:02:54 +0100 Subject: [PATCH] simplify ChangeDeviceControl in stubs Signed-off-by: Simon Thum Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- Xi/stubs.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Xi/stubs.c b/Xi/stubs.c index d9e8eec72..6a4c18158 100644 --- a/Xi/stubs.c +++ b/Xi/stubs.c @@ -115,17 +115,7 @@ int ChangeDeviceControl(ClientPtr client, DeviceIntPtr dev, xDeviceCtl * control) { - switch (control->control) { - case DEVICE_RESOLUTION: - return BadMatch; - case DEVICE_ABS_CALIB: - case DEVICE_ABS_AREA: - return BadMatch; - case DEVICE_CORE: - return BadMatch; - default: - return BadMatch; - } + return BadMatch; }