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 A961CDDBB for ; Thu, 17 Aug 2023 08:03:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B48C433CA; Thu, 17 Aug 2023 08:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692259436; bh=Is87yHwZ1B1uxPat0vcIkBqyx+Zw8erbKEizG+GfstU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bQLR4MEq2JoEpHF1AUMYvEPK/6suai95ibE5Mnb7vbTiyeKhWtN7iP7NUzj4C9kIc q2RjZKrqjoGoS8UxomkLr5FSX0Faxg60c2DTPoTGNkXEOmabw8/JrIqpbwPnO4CCSI Uouosn2YCdx4EQ7FbxlIU7Jwn4aD6FzT0kRlmrc1qnIP6WdC1DILnWPrM2p0LbGlkg k7A+pXUs3ZYYzv6CyADPZvjOr8+5WDhTAOLOhUSMNs12gMreMxiJOlcHpcNCIex0h1 vQaRPbFuSReKpInvkneWhmWZ9RPubG2/N7ua0H4XuUM/VH5pH1onPGctTOcOlPfMgy ukQb5LTrHNHOw== Date: Thu, 17 Aug 2023 11:03:51 +0300 From: Leon Romanovsky To: Ruan Jinjie Cc: netdev@vger.kernel.org, Mirko Lindner , Stephen Hemminger , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net-next] sky2: Remove redundant NULL check for debugfs_create_dir Message-ID: <20230817080351.GE22185@unreal> References: <20230817073017.350002-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: netdev@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: <20230817073017.350002-1-ruanjinjie@huawei.com> On Thu, Aug 17, 2023 at 03:30:17PM +0800, Ruan Jinjie wrote: > Since debugfs_create_dir() returns ERR_PTR, IS_ERR() is enough to > check whether the directory is successfully created. So remove the > redundant NULL check. > > Signed-off-by: Ruan Jinjie > --- > drivers/net/ethernet/marvell/sky2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky