From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 685722DCF45 for ; Wed, 30 Jul 2025 15:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753890823; cv=none; b=m2mrLwsqn7y2iGbtyHyAqvb8PI6gazFHDLaG5EJGLAURlv5CkQ8MIYO6snaZjp9xsRZNZ3krRmCTJdj4KjbSKf2qk7Nmqip7XqS68BjbJ8ogJPkE6U8asbIpUCMfgLGrnR6doeOGQn56kpbYI7mHIlpiXCqjI2oQeTGgXjpimHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753890823; c=relaxed/simple; bh=GMTZgr4xBWFXompW7o6OC9Jp7/agq8k0ZmNnxTnFzAE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t2MTTHeeqyWhw/hpbjU/seirmLMxUQZD0gdNSVfJo7AwqLSl6GipP9SCCcgpQdKQwejb3i/OLXIYaeLXN4lMTD6wil//eU6KgvZDgTFE0oLKASLS5CcXOdVu/COg5tSXRKoDui7Zn1VCwra8PYEy+hrsdnyHYhC/7ehSiEBKXac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id E6CB468B05; Wed, 30 Jul 2025 17:53:35 +0200 (CEST) Date: Wed, 30 Jul 2025 17:53:35 +0200 From: Christoph Hellwig To: Mohamed Khalfella Cc: Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Keith Busch , Hannes Reinecke , Nilay Shroff , Randy Jennings , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvmet: Remove unnecessary assignment to ret in nvmet_ns_enable() Message-ID: <20250730155335.GB19799@lst.de> References: <20250725230639.2017274-1-mkhalfella@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250725230639.2017274-1-mkhalfella@purestorage.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Jul 25, 2025 at 04:06:39PM -0700, Mohamed Khalfella wrote: > Commit 74d16965d7ac ("nvmet-loop: avoid using mutex in IO hotpath") > moved checking maximum number of namespaces in subsystem from > nvmet_ns_enable() to nvmet_ns_alloc(). The assignment to ret in > nvmet_ns_enable() is no longer needed, remove it. This assignment already is gone in the current tree.