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 81E1F6FC8E; Mon, 26 Apr 2021 13:10:38 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 81E1F6FC8E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1619431838; bh=dT3qPV66aJVSdMUmmHvqyjyFr/5whqXcIIQytXm3Ihw=; 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=Jtilim6NhiWnzYuLbihppKDxNQASX2VmrSfeulAezYqY5RequlH4Qr8qGdjR5KnCP F6pW/mzw8CD2aFVuAhoWFoT79QxkQzTIPZT6lKe3b0HdmlIiuIOJqO1RvLZI3FW4Ci g70mfSJtXTyYvSbzFHzI85YaWRj3AU+svlwOjk44= Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 C8A0A6FC8E for ; Mon, 26 Apr 2021 13:10:16 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C8A0A6FC8E Received: by mail-lj1-f170.google.com with SMTP id l22so56025171ljc.9 for ; Mon, 26 Apr 2021 03:10:16 -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=9RWikYuHHPBOwGlYuTLkJIZp5DfLccYAc52az9OhbJc=; b=CMd3B35j8kIXVayI1MKqmqxvMudqHvt0MBOOvJPJGjWVan1Mcf3B102o2xRVJzupVm ybTdOo18OmD98V4y2nAdSvXHoCQ15znYZWQmvDsLqEV8w1As3VagfEhIL50ERQld6ouk FcfX9mcHLPugtteQupqiuqLJqPDhZliioal/AIhTqaCVQ6RzJRZgxeZ8/ZcCXKxvmGgn ZNt81IpF18clBvWUQ1S7yRNe3HcdHBVu/clzhk8w5gIjpL4hryg1mOeW3gahQLF/pYib ava+zp5kC0INgthJ24HOkAaNrHbp0wET6NMddhLtRYKQmempoRMf3pnBBV0Azx/fdXld OWZA== X-Gm-Message-State: AOAM531DVKAKYDrKOSBajrMpCERnPN0KESqAM6xt0lTN/xBgm4hBMEL/ tr9Wp48h+9ubAp07EJIY4B1e6sHE9wo= X-Google-Smtp-Source: ABdhPJxLl0HN9IcYhrM9An8AjHk1FyAtSZ0LFl6QhodtH3pZt6WrvzCeP60mr8IedGQ1PaO/0rYd3g== X-Received: by 2002:a05:651c:210:: with SMTP id y16mr12306678ljn.210.1619431815831; Mon, 26 Apr 2021 03:10:15 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id o9sm1477050ljg.10.2021.04.26.03.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 03:10:15 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 9B193560066; Mon, 26 Apr 2021 13:10:01 +0300 (MSK) To: tml Date: Mon, 26 Apr 2021 13:09:59 +0300 Message-Id: <20210426101000.278874-2-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210426101000.278874-1-gorcunov@gmail.com> References: <20210426101000.278874-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 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 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