Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2362808lqp; Sun, 24 Mar 2024 15:51:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcPY9tqdtFW4kpVJj75FBapwzEC0e+48y9ToNHM2kR5LofminWu0klhC00ldQnFJxWs/ZbmlTjpKqsqjAHSWhi6HGfSPKdWqbuMGGfBw== X-Google-Smtp-Source: AGHT+IF+1FZuC+C4gI8RiIWhfB3F844ZYollUFXrks82N7/ylcPLCGW5wcaZRDdtVGaazKcrSaJD X-Received: by 2002:a50:cccf:0:b0:56b:ee71:9660 with SMTP id b15-20020a50cccf000000b0056bee719660mr3430859edj.27.1711320693729; Sun, 24 Mar 2024 15:51:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320693; cv=pass; d=google.com; s=arc-20160816; b=deSWaABby8bPE1Ce5O4wU//dWmKyjjkDwa+26pBySxeEqfUaPc/rMi1r/h489ixqz7 F1oVveg+b065gLcnYHP44WQ2j7/TROdMLw8kwVA2Fq+lVbype88SUyDr58y5lJS98G7n N5nkOkwWtDUamkaQQC5cSybWB6bF5B0sP1X2tBBRjpGMJ1cPfqFv3cM6t1f1rTMig7lW M+lzb/Un2aaUt2rVPuAt351XyAABBOEXOAAgSAmNV51jL9TUdL2UTimPbfq0gfHHU598 oE2+mKnaCuHnYxGJI/Q2TJXo6dcc7p00/NaQO3RDzmOEqWaTb9I8M3VKat5uJTJv36+S Biow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+o5/vTYJyjS09xRSK+LepY6KKW6WNFK/jcI3HuzTqew=; fh=8lKkxqHTiopHevjImvLlR4SH456bCwFvUbX1+xzGfos=; b=ykdjWwvrS9ntxy5Vd/Zr7APHuSO4Fs1X0/0WPtghiT3bLU0iJZiwwd8MZYrt5BhG85 3TW/xLPQExHBKltMdwjwl13F7XlWLaaQxdwLloRhowbi/VSL7sIvsNe/RcIvNLiOzmz7 U0z7KSoCD08z7ypLgfpia+OJQQExDXG6ZHueQGFBVUT21RPEbQtZO6mrjau58XlXZ8tb Q1PSsAvM4IH8W/DjJ2ox7hQJeKC/HldGnucXv4NeJooxepSpHR3+4xlmGLL5rAWNWNXF z4B5RBm2D4jpjgXIXUfbVtSKeWWrmvoFLxL1YJyr/i+mRswW5dJeLv12ZYLjalADo8nZ 1Zig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vc205BCC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ds2-20020a0564021cc200b005673899d1basi2030432edb.257.2024.03.24.15.51.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vc205BCC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 66EBA1F24690 for ; Sun, 24 Mar 2024 22:51:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18EF48664A; Sun, 24 Mar 2024 22:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vc205BCC" 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 346228627C; Sun, 24 Mar 2024 22:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319768; cv=none; b=tOEjfVnOOcD+mwgU3PTjjecsw8n/8UD/GF6yTW+FPhufhozAc3PFSVyo62BPG3HJfUq4WFN/Rx8OsHyGHJIhM7F473V2OVhzPyEPcMwTjFePK0TfHoYGZ+r4umbZpgJAQEok1VmlytWLTSYnd4CiiMPdFkHFF69WDUQLeR3CaSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319768; c=relaxed/simple; bh=60vo75mBcZsaaWRfia1pLHWloNQ83WhNjty4gGNM0pg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c9q1itLe/pjk/9Y2caqdeQCl+QCmCSucJtdm9gmVD5CCvlxPZ9ChAraJmVciQeZeqGpp7trk00zbriGu7x52A7ZkSKCXRfsTSjz+KGNV7eAK7jGTa6t/NmCxHSgW7W+/pr6KTYrb9mD+KjppwYMuhuGAFfoG4MZAYg08HQ/QWMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vc205BCC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3C6AC43394; Sun, 24 Mar 2024 22:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319767; bh=60vo75mBcZsaaWRfia1pLHWloNQ83WhNjty4gGNM0pg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vc205BCCEVCFiYWwWzvseHOPtPkhFlDbIIl4FRkWLziRWsO+n4jbzuLfZWg9zktmj +sxnbtc+3LvVrvr61LqfmPEP25+YQ04Gxr66GVPsrZyxVEKkubIjaAEvHx1MmoE1qA Ft8995VwS1fDfSrRDDibA/TKl5KKx+s+zOl8/EY2MIpf/HfJ4gNcWa83d/g7pp6KUK q/wt2oSKPaDICRp/KDWUe86ZTw3xL8wwpigURfbYhdpBMya+PARB2frPon14QhR9ox xNKQCUOLD1YPW+YTylBYSKg+gYtMra05Tr6KhLFFbarLiO+OBGpyJ4RWQ/P86zOUeh H0L5nJhkUMPow== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jinjie Ruan , Russell King , Kalle Valo , Sasha Levin Subject: [PATCH 6.8 068/715] wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir() Date: Sun, 24 Mar 2024 18:24:07 -0400 Message-ID: <20240324223455.1342824-69-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Jinjie Ruan [ Upstream commit 50180c7f8e3de7c2d87f619131776598fcb1478d ] debugfs_create_dir() returns ERR_PTR and never return NULL. As Russell suggested, this patch removes the error checking for debugfs_create_dir(). This is because 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. The debugfs APIs have a IS_ERR() judge in start_creating() which can handle it gracefully. So these checks are unnecessary. Fixes: 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver") Signed-off-by: Jinjie Ruan Suggested-by: Russell King (Oracle) Signed-off-by: Kalle Valo Link: https://msgid.link/20230903030216.1509013-3-ruanjinjie@huawei.com Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/mwifiex/debugfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/debugfs.c b/drivers/net/wireless/marvell/mwifiex/debugfs.c index f9c9fec7c792a..d14a0f4c1b6d7 100644 --- a/drivers/net/wireless/marvell/mwifiex/debugfs.c +++ b/drivers/net/wireless/marvell/mwifiex/debugfs.c @@ -970,9 +970,6 @@ mwifiex_dev_debugfs_init(struct mwifiex_private *priv) priv->dfs_dev_dir = debugfs_create_dir(priv->netdev->name, mwifiex_dfs_dir); - if (!priv->dfs_dev_dir) - return; - MWIFIEX_DFS_ADD_FILE(info); MWIFIEX_DFS_ADD_FILE(debug); MWIFIEX_DFS_ADD_FILE(getlog); -- 2.43.0