From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id B27CD5B2D6; Wed, 28 Apr 2021 13:23:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B27CD5B2D6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1619605408; bh=dTgUzlvNvRYWiAI/ERRbAHHlOgd7UCMnKxSxUlI2pbA=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=HXT0wtH23UY6G+UTPmLhc5/tqi+GuSHZE9Q9vKK9kyoJ/Ori9a3t8m8IYtODtrPqD Rgs23p035FWb47sr7b0jpYX1+KnKQpZRVj1ZN+zxrUnQegqF3RKX5Kspp8OC8ZxayJ gjgBHjxLhlpFSyKeMhK3FB5rzVuSFCRO+qV/GVtc= Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 66AD56F87A for ; Wed, 28 Apr 2021 13:23:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 66AD56F87A Received: by mail-lf1-f53.google.com with SMTP id x20so68035359lfu.6 for ; Wed, 28 Apr 2021 03:23:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MTZBpQ8cLdUnjMtv4ZIsLqyN4bY3rMww02lLDV1Qfd4=; b=WgN5cg8dhUJJDAEqx5zpErJe/2S/rBY8Vwo1dFa53Qi8MeMkLSTXyF1ZBkkzHW3yha T5AJ3bMAomjXduq1bjyb3R87/5xnD7LZSEROnxhp6oOxnPbCeVTxVxW1+ADzJsx+P00D V5SldB6hZqtcEi0BGU9RDKcmNX4OU0j1kgJhaFmtBBIxzBuG/qADROW9Dndnun1eb8xk oKstaUKzsmXkLtdi3327MU9AMFcO//lDtBUV8IugkEb5qr0BguYbvPPZOBJRZ+4G/6Sc 28SZLLCgkyW9jmEyGmf6QgXthL98SzVmz+ZZXGKpxP/IwcpGUBflczWFZFgd1ZQ+C/Hj hJZA== X-Gm-Message-State: AOAM533XIH+Q9fU8V1CL6BQWscybuvqfWk0BVaqpZAqJdHtMokLPi1v8 sgm5hMPuVDUoqNJSuv7XiG/Y6i5U2fo= X-Google-Smtp-Source: ABdhPJx6fTrcoz8p3+h6AXJfBxuAyd2ky3bqbA5tbZupBxth2j10QoZz1QPpmITRzvmBVpDWnrbHqw== X-Received: by 2002:ac2:418f:: with SMTP id z15mr19995646lfh.2.1619605392390; Wed, 28 Apr 2021 03:23:12 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id o9sm1093879ljg.10.2021.04.28.03.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 03:23:11 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 0C4BA560106; Wed, 28 Apr 2021 13:22:55 +0300 (MSK) To: tml Date: Wed, 28 Apr 2021 13:22:50 +0300 Message-Id: <20210428102251.552976-2-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210428102251.552976-1-gorcunov@gmail.com> References: <20210428102251.552976-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 1/2] fiber: fiber_join -- drop redundat variable X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" No need for additional variable here. In-scope-of #6046 Signed-off-by: Cyrill Gorcunov --- 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 -- 2.30.2