Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6318475pxb; Mon, 14 Feb 2022 22:48:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt0gKeXtTud9yEgedqNJ/3nQJGIm3J3ysr2SC6ISD/KGY04xJyc+HnVspp/ICGBD4bki8S X-Received: by 2002:a17:907:7288:: with SMTP id dt8mr1691441ejc.551.1644907691364; Mon, 14 Feb 2022 22:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644907691; cv=none; d=google.com; s=arc-20160816; b=XvQoIjvdq6WaNHuMMBCApQn4DId4ZcfGcbQGuW3xWrUOTnS9r7uGdmEWz3ozV6J5fn vFvv2mfRhNwgF/GJKABTBMyKgqjoMERsMerrpTp3c8U/Ld3694v4eKgxjvhVA2Au8TdW 0HpY2VZhY/ZdhH7N/G4c7AAoLJHyDQYh8m5WchD9+VdKvJIGD80BoadI/jEYpAXxkZ8Z fQtpQGG8lGOV8b9WxAT8Z22haPFOxCQnIprhStQXJmIkob4nmFyDs81krVfLt3AVe35r vGQShGlGYaMVbykXs0EP1Jm45BqL38oCKQ0hGgAOb26UKC36RsMvGnp26fkX6cINedkN ZrJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3RJ7FqeJ5y+5UiQ2pCXE7H/0C83iTb1vVR/yQS9RzJo=; b=CEHH8UfFuGtKzbWXujtyNvHsMFTJLlxvHKQx2+OnN4NK+rh5IiSDMj9pDhfQXLMieD JIG2Rmr3CALst05PgCnc4s5rQof/5Ow7bUKJZ8LCufHx2sefOQm0zJL4a/8ETbTTUoHj qso/2IxlejxkC8aLPkGeKHE2Tn8m0sUHDQLre5CSh1R8PtAvIGDfN/gQ5jfcwxFG11bd yMZDu365Xf2QliRSUJte6BWl+dQBUH2N1v5iMc94stNU//+RdVtYY7tAzslYassEkV0J DDf5lL4JiZKWh4YBqL5Xymq63GBFVxLQYt75oj0suHZCd27lXM2jKtarsmJuf5kChH86 +OiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp3si23843380ejc.597.2022.02.14.22.47.47; Mon, 14 Feb 2022 22:48:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232937AbiBOGWb (ORCPT + 99 others); Tue, 15 Feb 2022 01:22:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiBOGW3 (ORCPT ); Tue, 15 Feb 2022 01:22:29 -0500 Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8441D0492 for ; Mon, 14 Feb 2022 22:22:19 -0800 (PST) Received: from [192.168.1.18] ([90.126.236.122]) by smtp.orange.fr with ESMTPA id JrE4noUgHi9Q8JrE5nCLGl; Tue, 15 Feb 2022 07:22:17 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Tue, 15 Feb 2022 07:22:17 +0100 X-ME-IP: 90.126.236.122 Message-ID: <183f319e-613d-5318-25b2-2c90ef4fdee5@wanadoo.fr> Date: Tue, 15 Feb 2022 07:22:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] nvme: Fix missing error code in nvme_configure_directives() Content-Language: en-US To: Keith Busch , Jiapeng Chong Cc: axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220215033632.104124-1-jiapeng.chong@linux.alibaba.com> <20220215035506.GA1663897@dhcp-10-100-145-180.wdc.com> From: Christophe JAILLET In-Reply-To: <20220215035506.GA1663897@dhcp-10-100-145-180.wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 15/02/2022 à 04:55, Keith Busch a écrit : > On Tue, Feb 15, 2022 at 11:36:32AM +0800, Jiapeng Chong wrote: >> The error code is missing in this code scenario, add the error code >> '-EINVAL' to the return value 'ret'. >> >> Eliminate the follow smatch warning: >> >> drivers/nvme/host/core.c:780 nvme_configure_directives() warn: missing >> error code 'ret'. > > Nak, the code is correct as-is, just like it was the previous time you > posted this patch: > > http://lists.infradead.org/pipermail/linux-nvme/2021-September/027339.html > Hi, maybe an explicit 'ret = 0;' (and eventually a comment saying why) would help here? The code really looks like an error handling path (and will keep getting some patches for it because of bots). Just my 2c. CJ