i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 01:42:39 +0000 (09:42 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 21 Jul 2023 15:49:37 +0000 (08:49 -0700)
commit043b1f185fb0f3939b7427f634787706f45411c4
tree3ffb675235623587720717175dc0ae1fdfb1614e
parent57f1f9dd3abea322173ea75a15887ccf14bbbe51
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()

The debugfs_create_dir() function returns error pointers.
It never returns NULL. Most incorrect error checks were fixed,
but the one in i40e_dbg_init() was forgotten.

Fix the remaining error check.

Fixes: 02e9c290814c ("i40e: debugfs interface")
Signed-off-by: Wang Ming <machel@vivo.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c