From: John Hodge Date: Sun, 8 Jun 2014 15:12:09 +0000 (+0800) Subject: Modules/VirtIO - Fix bad ASSERTC X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=db4a7609b9f336f3e4aa6e9d9acd9989a8ec847d;p=tpg%2Facess2.git Modules/VirtIO - Fix bad ASSERTC --- diff --git a/KernelLand/Modules/Libraries/VirtIO/virtio.c b/KernelLand/Modules/Libraries/VirtIO/virtio.c index 614bd357..4631b72c 100644 --- a/KernelLand/Modules/Libraries/VirtIO/virtio.c +++ b/KernelLand/Modules/Libraries/VirtIO/virtio.c @@ -390,7 +390,8 @@ void VirtIO_ReleaseBuffer(tVirtIO_Buf *Buffer) do { has_next = !!(queue->Entries[idx].Flags & VRING_DESC_F_NEXT); int next_idx = queue->Entries[idx].Next; - ASSERTC(!has_next || next_idx,!=,idx); + if( has_next ) + ASSERTC(next_idx,!=,idx); VirtIO_int_ReleaseQDesc(queue, idx);