summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/csiostor
diff options
context:
space:
mode:
authorSaurav Girepunje <saurav.girepunje@gmail.com>2019-10-28 20:42:34 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-02 01:22:05 +0100
commit64dc4f346b5be50a96f41d628e88c0fdb0ee0254 (patch)
treea4bc30a21795d69320591e7f07a54c975fb2bb02 /drivers/scsi/csiostor
parentscsi: csiostor: Fix NULL check before debugfs_remove_recursive (diff)
downloadlinux-64dc4f346b5be50a96f41d628e88c0fdb0ee0254.tar.xz
linux-64dc4f346b5be50a96f41d628e88c0fdb0ee0254.zip
scsi: csiostor: Return value not required for csio_dfs_destroy
Only csio_hw_free() calling csio_dfs_destroy() and it is not checking return value. So remove the return from csio_dfs_destroy(). Link: https://lore.kernel.org/r/20191028194234.GA27848@saurav Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor')
-rw-r--r--drivers/scsi/csiostor/csio_init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c
index f98f36c0d6b7..2e8a3ac575cb 100644
--- a/drivers/scsi/csiostor/csio_init.c
+++ b/drivers/scsi/csiostor/csio_init.c
@@ -154,12 +154,10 @@ csio_dfs_create(struct csio_hw *hw)
/*
* csio_dfs_destroy - Destroys per-hw debugfs.
*/
-static int
+static void
csio_dfs_destroy(struct csio_hw *hw)
{
debugfs_remove_recursive(hw->debugfs_root);
-
- return 0;
}
/*