From: Cyrill Gorcunov via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: tml <tarantool-patches@dev.tarantool.org> Cc: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Subject: [Tarantool-patches] [PATCH 1/2] fiber: fiber_join -- drop redundat variable Date: Mon, 26 Apr 2021 13:09:59 +0300 [thread overview] Message-ID: <20210426101000.278874-2-gorcunov@gmail.com> (raw) In-Reply-To: <20210426101000.278874-1-gorcunov@gmail.com> No need for additional variable here. In-scope-of #6046 Signed-off-by: Cyrill Gorcunov <gorcunov@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
next prev parent reply other threads:[~2021-04-26 10:10 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-26 10:09 [Tarantool-patches] [PATCH 0/2] fiber: prevent fiber_join from misuse Cyrill Gorcunov via Tarantool-patches 2021-04-26 10:09 ` Cyrill Gorcunov via Tarantool-patches [this message] 2021-04-26 10:10 ` [Tarantool-patches] [PATCH 2/2] fiber: fiber_join -- don't crash on misuse Cyrill Gorcunov via Tarantool-patches 2021-04-26 20:58 ` Vladislav Shpilevoy via Tarantool-patches 2021-04-26 21:36 ` Cyrill Gorcunov via Tarantool-patches 2021-04-26 20:59 ` Vladislav Shpilevoy via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210426101000.278874-2-gorcunov@gmail.com \ --to=tarantool-patches@dev.tarantool.org \ --cc=gorcunov@gmail.com \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 1/2] fiber: fiber_join -- drop redundat variable' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox