Commit 75a740e6 authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Martin K. Petersen
Browse files

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@saurav


Signed-off-by: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 62fb8b34
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -157,7 +157,6 @@ csio_dfs_create(struct csio_hw *hw)
static int
csio_dfs_destroy(struct csio_hw *hw)
{
	if (hw->debugfs_root)
	debugfs_remove_recursive(hw->debugfs_root);

	return 0;