From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4461D13AD3 for ; Thu, 15 Jun 2023 11:40:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3CFBC433CC; Thu, 15 Jun 2023 11:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686829210; bh=iH5sptddWZcnlTxUPs2tB+BDolK9udB4DIFGmPbcGAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s598S/hnWBUsTkw0cWXHYvhUpguVGXK1+OfFd7q0ZUAu5QTCmTv8xURl62xxgth+H Qxbmyo31AqWpcKEd46sNMv0aSfoQQgRru6BcMT/Rek5XStWxXBTPrbr1V724q+3+FW rb0WykTHD0OGZwkGfKxyRYd13CSeWc4P+InAXoE5h9eIxoexJzbdWLqf3bMDFseBZ1 5yaMIbhuB7Ayjr7XwO/GXF7T/tpdRI6jiM18ffOLml9EhhjoX8mfVr0yv17MFquXA4 XiWOH0wriS6QL8ks3egGbfkF103aULDKnWkul2dmZb1V3oNggqCntYGNy++2pm2BMG TPCVsE6rpq4Yw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Osama Muhammad , Simon Horman , "David S . Miller" , Sasha Levin , krzysztof.kozlowski@linaro.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 7/8] nfcsim.c: Fix error checking for debugfs_create_dir Date: Thu, 15 Jun 2023 07:39:55 -0400 Message-Id: <20230615113956.649736-7-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615113956.649736-1-sashal@kernel.org> References: <20230615113956.649736-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 4.19.286 Content-Transfer-Encoding: 8bit From: Osama Muhammad [ Upstream commit 9b9e46aa07273ceb96866b2e812b46f1ee0b8d2f ] This patch fixes the error checking in nfcsim.c. The DebugFS kernel API is developed in a way that the caller can safely ignore the errors that occur during the creation of DebugFS nodes. Signed-off-by: Osama Muhammad Reviewed-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/nfc/nfcsim.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index 533e3aa6275cd..cf07b366500e9 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c @@ -345,10 +345,6 @@ static struct dentry *nfcsim_debugfs_root; static void nfcsim_debugfs_init(void) { nfcsim_debugfs_root = debugfs_create_dir("nfcsim", NULL); - - if (!nfcsim_debugfs_root) - pr_err("Could not create debugfs entry\n"); - } static void nfcsim_debugfs_remove(void) -- 2.39.2