From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Brandeburg Date: Wed, 03 Feb 2021 23:24:25 +0000 Subject: Re: [PATCH][next] net: hns3: remove redundant null check of an array Message-Id: <20210203152425.00007a51@intel.com> List-Id: References: <20210203131040.21656-1-colin.king@canonical.com> In-Reply-To: <20210203131040.21656-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Colin King Cc: Yisen Zhuang , Salil Mehta , "David S . Miller" , Jakub Kicinski , Huazhong Tan , Guangbin Huang , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Colin King wrote: > From: Colin Ian King > > The null check of filp->f_path.dentry->d_iname is redundant because > it is an array of DNAME_INLINE_LEN chars and cannot be a null. Fix > this by removing the null check. > > Addresses-Coverity: ("Array compared against 0") > Fixes: 04987ca1b9b6 ("net: hns3: add debugfs support for tm nodes, priority and qset info") > Signed-off-by: Colin Ian King Reviewed-by: Jesse Brandeburg