From mboxrd@z Thu Jan 1 00:00:00 1970 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 8BC99C6FD19 for ; Thu, 16 Mar 2023 13:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbjCPNRv (ORCPT ); Thu, 16 Mar 2023 09:17:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbjCPNRp (ORCPT ); Thu, 16 Mar 2023 09:17:45 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42291CC334 for ; Thu, 16 Mar 2023 06:17:15 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so1420634pjp.1 for ; Thu, 16 Mar 2023 06:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1678972634; x=1681564634; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Pezwyd0vG7hsp540g7EcpBHXx5rGXUfKuMnF2JXzgn0=; b=7LI9ZrcjEBJ7Dpe1Dzd1B0GhrxafrAL0WykRXyy+cuE0d4ls/g0MjMa+TzfxyAPjma RsDui0lKGQM/z7YphJaI7xtJ2iRraoYDBSYu9w56HVQTO7QPR2+uFfxRB4eUoum9UCnC fNtrCktJc8k7+iPqdFTUykj0kZFC/PhLLh2tHgyc4oCf/m5xg0HUqsgqhwemxSBjTpbT 8vUbuS53RS9mIqsL9gs0YoCncsQhaPFk7hx0jm8x20T8ThX1FMK1JG8xP+n8UtKx4w6b mEvEAhyhQ9sI6yphrpz2Iukg4KlBvZ7b/Sor83C/jDpBo32FAQVpk4KOAbqRR61Dls9o PrkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678972634; x=1681564634; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pezwyd0vG7hsp540g7EcpBHXx5rGXUfKuMnF2JXzgn0=; b=KtucgHf8hNzkmDbXPahItZ4E4jeDXaIPlJwoeRBptNJsVmhK1TxcwWBDH/YVCEtSzw Gm+VpBXcKe0HeuKA1M1PyWuIrR9P/jsbDBUZqtnZ24MlnLxuUuSHnKbMCRou55yvJ8hH f3vgRNSWiwlujilUbKDX3o6Bg6+oS1rKI3vNmr/2C4VuvZmvX7rWfwEuPALnvOMMCf/w xjPRn4+6RRujzE4rckn4nXEChuzNtTR/JbZNm9PE1HkslAlKsfMGRqwYJmcada2tL2e9 2zHrxbsEQR+buj4+Ks9xjWTGhgFy6EpXb4YlVJkHIz6Xb4OFgXcj6CAtlTnOC5NOOLbW aC0g== X-Gm-Message-State: AO0yUKX8oHA6lqrXTuza3eOvNvId2T1V637FnHSK0kBHnArMyi8yfCGI ZYV5zjuVliXAOsZGshap/+Ibpg== X-Google-Smtp-Source: AK7set8wFP0FQmVwFthXtW8wW12GYUG1LiO5prgOre7P4z+VfiGC49CCZ55ul61g9R0AxGtDsRiMqA== X-Received: by 2002:a05:6a20:7fa3:b0:cd:345e:5b10 with SMTP id d35-20020a056a207fa300b000cd345e5b10mr7745142pzj.5.1678972634488; Thu, 16 Mar 2023 06:17:14 -0700 (PDT) Received: from [127.0.0.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id j9-20020aa78dc9000000b00571f66721aesm5456108pfr.42.2023.03.16.06.17.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 06:17:14 -0700 (PDT) From: Jens Axboe To: asml.silence@gmail.com, Li zeming Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230317182538.3027-1-zeming@nfschina.com> References: <20230317182538.3027-1-zeming@nfschina.com> Subject: Re: [v2 PATCH] io_uring: rsrc: Optimize return value variable 'ret' Message-Id: <167897263379.230509.14067894771761277084.b4-ty@kernel.dk> Date: Thu, 16 Mar 2023 07:17:13 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-2eb1a Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Sat, 18 Mar 2023 02:25:38 +0800, 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, thanks! [1/1] io_uring: rsrc: Optimize return value variable 'ret' commit: 6acd352dfee558194643adbed7e849fe80fd1b93 Best regards, -- Jens Axboe