From f00b684cb1a33317a1d7491edc18c79755f16d96 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 4 Dec 2025 11:53:45 +0100 Subject: [PATCH] xfree86: dri2: inline load_swap_reply() very tiny and only called once, so no need to have a separate function. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/dri2/dri2ext.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c index 907984a9c4..fe424df3fb 100644 --- a/hw/xfree86/dri2/dri2ext.c +++ b/hw/xfree86/dri2/dri2ext.c @@ -329,13 +329,6 @@ ProcDRI2CopyRegion(ClientPtr client) return X_SEND_REPLY_SIMPLE(client, reply); } -static void -load_swap_reply(xDRI2SwapBuffersReply * rep, CARD64 sbc) -{ - rep->swap_hi = sbc >> 32; - rep->swap_lo = sbc & 0xffffffff; -} - static CARD64 vals_to_card64(CARD32 lo, CARD32 hi) { @@ -393,7 +386,8 @@ ProcDRI2SwapBuffers(ClientPtr client) xDRI2SwapBuffersReply reply = { 0 }; - load_swap_reply(&reply, swap_target); + reply.swap_hi = swap_target >> 32; + reply.swap_lo = swap_target & 0xffffffff; return X_SEND_REPLY_SIMPLE(client, reply); }