xkb: drop unnecessary assignment of core reply struct fields

Those fields are already assigned by X_REPLY_SEND*() macros,
thus we don't need to - and should not - assign them explicitly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-07-15 19:12:01 +02:00 • committed by Enrico Weigelt
commit 3bdacc6e0f

View file

@ -4894,7 +4894,6 @@ ProcXkbGetGeometry(ClientPtr client)
geom = XkbLookupNamedGeometry(dev, stuff->name, &shouldFree);
xkbGetGeometryReply reply = {
.type = X_Reply,
.deviceID = dev->id,
};
status = XkbComputeGetGeometryReplySize(geom, &reply, stuff->name);
@ -6361,9 +6360,7 @@ ProcXkbGetDeviceInfo(ClientPtr client)
nameLen = XkbSizeCountedString(dev->name);
xkbGetDeviceInfoReply reply = {
.type = X_Reply,
.deviceID = dev->id,
.sequenceNumber = client->sequence,
.length = bytes_to_int32(nameLen),
.present = wanted,
.supported = XkbXI_AllDeviceFeaturesMask,