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 AD3ACEB64DD for ; Thu, 15 Jun 2023 11:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344633AbjFOLox (ORCPT ); Thu, 15 Jun 2023 07:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344523AbjFOLn4 (ORCPT ); Thu, 15 Jun 2023 07:43:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A223ABA; Thu, 15 Jun 2023 04:40:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C5E4F60F23; Thu, 15 Jun 2023 11:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76DAFC433AB; Thu, 15 Jun 2023 11:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686829225; bh=iH5sptddWZcnlTxUPs2tB+BDolK9udB4DIFGmPbcGAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P8iqZt8lHBeA5ebylMgG9n9qu3Bgk6Wgm60Q3gRztqU4EaGHVlT+4XNcJNCi4Iw8x eticxk6oecYFD8uavTpIRCZUrMujR8ok7gELQwSRJNdyaEjDud4XTMH9FQodOLvhue 0/fd1UWNnysKLSXylxIR+JKmenqbTwre7bf/DnJZxqFgTeypZH3fq+3FmzhDKC1tsq 0ZHrpqHh6VbAaOnp89WIKLBjHpfOsIlcIK6jWlCQi21kTFc3fuVcMdpFy0zgWXK+78 KsTVexVwHFGRwg5Ew5kGvjw9cUEejfIkLLB2JyW+nIabCWhbCHOJ/rLg50o9VmXd4g n0sfo5c/bz4og== 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.14 4/6] nfcsim.c: Fix error checking for debugfs_create_dir Date: Thu, 15 Jun 2023 07:40:12 -0400 Message-Id: <20230615114016.649846-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615114016.649846-1-sashal@kernel.org> References: <20230615114016.649846-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 4.14.318 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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