xkb: remove unused label "out", clean up program flow.
This commit is contained in:
parent
971aef6441
commit
0a076b6a7f
|
@ -81,12 +81,10 @@ _XkbLookupAnyDevice(DeviceIntPtr *pDev, int id, ClientPtr client,
|
||||||
|
|
||||||
if (id == XkbUseCoreKbd) {
|
if (id == XkbUseCoreKbd) {
|
||||||
id = PickKeyboard(client)->id;
|
id = PickKeyboard(client)->id;
|
||||||
}
|
} else if (id == XkbUseCorePtr) {
|
||||||
if (id == XkbUseCorePtr) {
|
|
||||||
id = PickPointer(client)->id;
|
id = PickPointer(client)->id;
|
||||||
}
|
}
|
||||||
rc = dixLookupDevice(pDev, id, client, access_mode);
|
rc = dixLookupDevice(pDev, id, client, access_mode);
|
||||||
out:
|
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
*xkb_err = XkbErr_BadDevice;
|
*xkb_err = XkbErr_BadDevice;
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue