提交 75a740e6 编写于 作者: S Saurav Girepunje 提交者: Martin K. Petersen

scsi: csiostor: Fix NULL check before debugfs_remove_recursive

debugfs_remove_recursive() has taken the null pointer into account.  Remove
the null check before debugfs_remove_recursive().

Link: https://lore.kernel.org/r/20191026195625.GA22455@sauravSigned-off-by: NSaurav Girepunje <saurav.girepunje@gmail.com>
Reviewed-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 62fb8b34
...@@ -157,8 +157,7 @@ csio_dfs_create(struct csio_hw *hw) ...@@ -157,8 +157,7 @@ csio_dfs_create(struct csio_hw *hw)
static int static int
csio_dfs_destroy(struct csio_hw *hw) csio_dfs_destroy(struct csio_hw *hw)
{ {
if (hw->debugfs_root) debugfs_remove_recursive(hw->debugfs_root);
debugfs_remove_recursive(hw->debugfs_root);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册