summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-08-09 15:54:56 +0300
committerPeter Hutterer <peter.hutterer@redhat.com>2008-11-04 16:01:41 +1030
commit064ee458c7183eb91ef2e0f262b312ba1e3ad6e5 (patch)
treeaa029a5396b66f3f63dbb3a8a627aa1e80b4dc96 /xkb
parent97c9e6a7139e07a0761be05034fae42fcd65ba36 (diff)
XKB: Tiny cleanups to _XkbLookupAnyDevice
A couple of coding style cleanups, a warning fix via removing a now-unused label, and also put an else so we don't spuriously trip a condition that should admittedly never occur anyway. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 61d37af24..aafc1ab0a 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -79,14 +79,15 @@ _XkbLookupAnyDevice(DeviceIntPtr *pDev, int id, ClientPtr client,
{
int rc = XkbKeyboardErrorCode;
- if (id == XkbUseCoreKbd) {
+ if (id == XkbUseCoreKbd)
id = PickKeyboard(client)->id;
- } else if (id == XkbUseCorePtr) {
+ else if (id == XkbUseCorePtr)
id = PickPointer(client)->id;
- }
+
rc = dixLookupDevice(pDev, id, client, access_mode);
if (rc != Success)
*xkb_err = XkbErr_BadDevice;
+
return rc;
}