From 9bf25d873b2ba67c6938601e9d0700496d942cd3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 18 Jul 2019 12:49:32 +0000 Subject: [PATCH] Fix insane coding style Signed-off-by: Jason A. Donenfeld --- wintun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wintun.c b/wintun.c index dc16ca4..cc0d3d6 100644 --- a/wintun.c +++ b/wintun.c @@ -304,8 +304,8 @@ TunSendNetBufferLists( if (Status = NDIS_STATUS_BUFFER_OVERFLOW, RingSpace < RequiredRingSpace) goto cleanupKeReleaseInStackQueuedSpinLock; - TunNblSetTailAndMarkActive( - Nbl, Ctx->Device.Send.RingTail = TUN_RING_WRAP(RingTail + RequiredRingSpace, RingCapacity)); + Ctx->Device.Send.RingTail = TUN_RING_WRAP(RingTail + RequiredRingSpace, RingCapacity); + TunNblSetTailAndMarkActive(Nbl, Ctx->Device.Send.RingTail); *(Ctx->Device.Send.ActiveNbls.Head ? &NET_BUFFER_LIST_NEXT_NBL(Ctx->Device.Send.ActiveNbls.Tail) : &Ctx->Device.Send.ActiveNbls.Head) = Nbl; Ctx->Device.Send.ActiveNbls.Tail = Nbl;