From 56ca98aa47f97ed8e34450f701d69806df3aa4aa Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 28 Aug 2024 14:09:55 +0200 Subject: [PATCH] glx: DoQueryContext(): drop duplicate write path We now have two copies of the same write path in both swapped and non-swapped branch. One is enough. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- glx/glxcmds.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 6f27ee609..4a157dcae 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -1689,15 +1689,12 @@ DoQueryContext(__GLXclientState * cl, GLXContextID gcId) __GLX_SWAP_SHORT(&reply.sequenceNumber); __GLX_SWAP_INT(&reply.length); __GLX_SWAP_INT(&reply.n); - WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); __GLX_SWAP_INT_ARRAY(sendBuf, sizeof(sendBuf) / sizeof(CARD32)); - WriteToClient(client, sizeof(sendBuf), sendBuf); - } - else { - WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); - WriteToClient(client, sizeof(sendBuf), sendBuf); } + WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); + WriteToClient(client, sizeof(sendBuf), sendBuf); + return Success; }