Browse Source

coroutine: remove unnecessary parentheses in qemu_co_queue_empty

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Emilio G. Cota 10 years ago
parent
commit
b1201addc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qemu-coroutine-lock.c

+ 1 - 1
qemu-coroutine-lock.c

@@ -108,7 +108,7 @@ bool qemu_co_enter_next(CoQueue *queue)
 
 
 bool qemu_co_queue_empty(CoQueue *queue)
 bool qemu_co_queue_empty(CoQueue *queue)
 {
 {
-    return (QTAILQ_FIRST(&queue->entries) == NULL);
+    return QTAILQ_FIRST(&queue->entries) == NULL;
 }
 }
 
 
 void qemu_co_mutex_init(CoMutex *mutex)
 void qemu_co_mutex_init(CoMutex *mutex)