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

Serge Petrenko sergepetrenko at tarantool.org
Wed Apr 28 18:13:46 MSK 2021



28.04.2021 13:22, Cyrill Gorcunov пишет:
> 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 cb6295171..a4b60e864 100644
> --- a/src/lib/core/fiber.c
> +++ b/src/lib/core/fiber.c
> @@ -614,8 +614,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
Thanks! LGTM

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list