Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83A98C7618B for ; Thu, 16 Mar 2023 02:00:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjCPCAH (ORCPT ); Wed, 15 Mar 2023 22:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjCPCAG (ORCPT ); Wed, 15 Mar 2023 22:00:06 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA67283FB for ; Wed, 15 Mar 2023 19:00:04 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id l9-20020a17090a3f0900b0023d32684e7fso4671337pjc.1 for ; Wed, 15 Mar 2023 19:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1678932004; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BN0T8h6Fid0teOjWiCV9SOtVt2asU9DqG+K0Sfivnf8=; b=jTi36fQcdQBMHxx8qOtG6nzhWkLdU9ySTEQ4th4kkQvTo1tVzXsHTVVWLxb/Al8vUh jjN74eEGIeQ6mLog4XiW7eGLwBs+/RnqLcjjaSpBJ1upAkrK8jTPf3+Qhh8GHMVDHfvc y+whYDUruEtg/twGJLeQ2LkrcJ2uqqJdEwaRoIfN6MRIshfQ5qAKTf84u+jPbdzgk8pm Y2GrYp0Ey7r/Rdxfs1JBTkC+vd8ZblwpDuvyxZDI24cE8TQsVXTLPGY+DCyXmSzJle1e QSmlcNT5cEYU5/tl85jjEhWAO01LCp5q9udTWSIivfP51A5U7BipfaPvtlEiO9QIKJxo sp3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678932004; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BN0T8h6Fid0teOjWiCV9SOtVt2asU9DqG+K0Sfivnf8=; b=v7zrDs9psT2FEKBScHo+ZbY7QeZF6wZynk7XsgwWaghih5k4Dwek+oLD6bbryPjiwO MOrb9luvKiZqfaqTTjIOoDmPYxDZ5noGLA/XEBF42Kbb83UvYhR0BApRBk5Mha2WCEwZ MjrHr671YROQP+m3Rlv/mPOMXtbWfn2XYrQVpD9PpBGJ/toWX6v+LHxm8maYy75jlZox Hk47+PeTjhwv3SrxTrl+4ljnb4JC+Vd4e0wcCYgoFSJj3fcVe+MHJDDMX883x019rymp X4+tFViSa3fE0sQ8/2FDOqUI419Ve2ugKSmX2eDZwHVE9Utplu2ctqU2t61kfxxGUHE8 yJxw== X-Gm-Message-State: AO0yUKXvZiZrflX+3F0CDuirpJbgNFu3uvi0E1hFE22xCCA3x/7bxOEf o5ZNBm0vmrVuoWLFVQvV4wMY4A== X-Google-Smtp-Source: AK7set/Is6dLxtc4WaDptG3bQM+e66bS1nvPMWfqNvjI7W1oRQYFscnHvcEcK/dzZlS8/XA+bS0t1w== X-Received: by 2002:a17:902:d505:b0:19a:723a:8405 with SMTP id b5-20020a170902d50500b0019a723a8405mr1671080plg.6.1678932004273; Wed, 15 Mar 2023 19:00:04 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id o12-20020a1709026b0c00b0019a97f180fcsm4263052plk.37.2023.03.15.19.00.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Mar 2023 19:00:03 -0700 (PDT) Message-ID: Date: Wed, 15 Mar 2023 20:00:02 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [v2 PATCH] io_uring: rsrc: Optimize return value variable 'ret' Content-Language: en-US To: Li zeming , asml.silence@gmail.com Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230317182538.3027-1-zeming@nfschina.com> From: Jens Axboe In-Reply-To: <20230317182538.3027-1-zeming@nfschina.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/23 12:25 PM, Li zeming wrote: > The initialization assignment of the variable ret is changed to 0, only > in 'goto fail;' Use the ret variable as the function return value. Applied - normally I'd just sent the usual auto-generated email, but wanted to let you know that the previous email and this email are all sent from the future. You need to fix your date/time on your end. -- Jens Axboe