Modules/VirtIO - Fix bad ASSERTC
authorJohn Hodge <[email protected]>
Sun, 8 Jun 2014 15:12:09 +0000 (23:12 +0800)
committerJohn Hodge <[email protected]>
Sun, 8 Jun 2014 15:12:09 +0000 (23:12 +0800)
KernelLand/Modules/Libraries/VirtIO/virtio.c

index 614bd35..4631b72 100644 (file)
@@ -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);
        

UCC git Repository :: git.ucc.asn.au