From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9837544643B for ; Thu, 12 Nov 2020 22:53:14 +0300 (MSK) Received: by mail-lj1-f196.google.com with SMTP id y16so7685265ljh.0 for ; Thu, 12 Nov 2020 11:53:14 -0800 (PST) From: Cyrill Gorcunov Date: Thu, 12 Nov 2020 22:51:19 +0300 Message-Id: <20201112195121.191366-10-gorcunov@gmail.com> In-Reply-To: <20201112195121.191366-1-gorcunov@gmail.com> References: <20201112195121.191366-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 09/11] qsync: drop redundant type convention List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy Void pointer can be cast implicitly. Signed-off-by: Cyrill Gorcunov --- src/box/txn_limbo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/box/txn_limbo.c b/src/box/txn_limbo.c index cf6122360..ffcda389c 100644 --- a/src/box/txn_limbo.c +++ b/src/box/txn_limbo.c @@ -549,8 +549,7 @@ static int txn_commit_cb(struct trigger *trigger, void *event) { (void)event; - struct confirm_waitpoint *cwp = - (struct confirm_waitpoint *)trigger->data; + struct confirm_waitpoint *cwp = trigger->data; cwp->is_confirm = true; fiber_wakeup(cwp->caller); return 0; @@ -560,8 +559,7 @@ static int txn_rollback_cb(struct trigger *trigger, void *event) { (void)event; - struct confirm_waitpoint *cwp = - (struct confirm_waitpoint *)trigger->data; + struct confirm_waitpoint *cwp = trigger->data; cwp->is_rollback = true; fiber_wakeup(cwp->caller); return 0; -- 2.26.2