[Tarantool-patches] [PATCH 1/2] fiber: fiber_join -- drop redundat variable

Cyrill Gorcunov gorcunov at gmail.com
Mon Apr 26 13:09:59 MSK 2021


No need for additional variable here.

In-scope-of #6046

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/lib/core/fiber.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c
index f8b85d99d..baf78a130 100644
--- a/src/lib/core/fiber.c
+++ b/src/lib/core/fiber.c
@@ -609,8 +609,7 @@ fiber_reschedule(void)
 int
 fiber_join(struct fiber *fiber)
 {
-	int rc = fiber_join_timeout(fiber, TIMEOUT_INFINITY);
-	return rc;
+	return fiber_join_timeout(fiber, TIMEOUT_INFINITY);
 }
 
 int
-- 
2.30.2



More information about the Tarantool-patches mailing list