From patchwork Thu Apr 30 05:08:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 466441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9B93214012C for ; Thu, 30 Apr 2015 18:47:38 +1000 (AEST) Received: from localhost ([::1]:42642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynk88-0007i7-L9 for incoming@patchwork.ozlabs.org; Thu, 30 Apr 2015 04:47:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynk7Z-0006di-62 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 04:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ynk7W-0004a5-03 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 04:47:01 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:35440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynk7V-0004ZN-PJ; Thu, 30 Apr 2015 04:46:57 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id B75EC42BC2; Thu, 30 Apr 2015 11:46:56 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 8FDFC970; Thu, 30 Apr 2015 08:09:01 +0300 (MSK) Received: (nullmailer pid 4362 invoked by uid 1000); Thu, 30 Apr 2015 05:08:57 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Thu, 30 Apr 2015 08:08:47 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, "Emilio G. Cota" , Michael Tokarev Subject: [Qemu-devel] [PULL 34/42] coroutine: remove unnecessary parentheses in qemu_co_queue_empty X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- qemu-coroutine-lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-coroutine-lock.c b/qemu-coroutine-lock.c index e4860ae..6b49033 100644 --- a/qemu-coroutine-lock.c +++ b/qemu-coroutine-lock.c @@ -108,7 +108,7 @@ bool qemu_co_enter_next(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)