xkb: ProcXkbGetKbdByName(): use return code of X_SEND_REPLY_WITH_RPCBUF()

The macro will automatically return BadAlloc if the buffer is broken,
otherwise Success. Thus, we don't need extra prior rpcbuf check.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-25 11:24:53 +02:00
committed by Enrico Weigelt
parent ce69e8a520
commit 898251b461

View File

@@ -5915,7 +5915,7 @@ ProcXkbGetKbdByName(ClientPtr client)
x_rpcbuf_write_rpcbuf_pad(&rpcbuf, &childbuf);
}
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
status = X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
if (loaded) {
XkbDescPtr old_xkb;
@@ -5973,7 +5973,7 @@ ProcXkbGetKbdByName(ClientPtr client)
XkbSetCauseXkbReq(&cause, X_kbGetKbdByName, client);
XkbUpdateAllDeviceIndicators(NULL, &cause);
return Success;
return status;
}
/***====================================================================***/