[Tarantool-patches] [PATCH 09/11] qsync: drop redundant type convention

Cyrill Gorcunov gorcunov at gmail.com
Thu Nov 12 22:51:19 MSK 2020


Void pointer can be cast implicitly.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 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



More information about the Tarantool-patches mailing list