mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-15 05:23:40 +00:00
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:
parent
c4cae6759c
commit
3bdacc6e0f
1 changed files with 0 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue