diff options
author | Greg Kroah-Hartman <[email protected]> | 2019-01-22 16:09:01 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-01-29 00:40:53 -0500 |
commit | b6533640ed3e25e9a12497dbc679a10896848c91 (patch) | |
tree | d52f9ef99337bacd02ef3401e2bdd2b450acf09e | |
parent | 8389f1281cd5cc7cc95218516800f42dddfd9111 (diff) |
scsi: csiostor: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return
value. The function can work or not, but the code logic should never do
something different based on this.
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: Varun Prakash <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Johannes Thumshirn <[email protected]>
Cc: Oza Pawandeep <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/csiostor/csio_init.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index cf629380a981..460e4ee1c8fe 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -167,14 +167,10 @@ csio_dfs_destroy(struct csio_hw *hw) * csio_dfs_init - Debug filesystem initialization for the module. * */ -static int +static void csio_dfs_init(void) { csio_debugfs_root = debugfs_create_dir(KBUILD_MODNAME, NULL); - if (!csio_debugfs_root) - pr_warn("Could not create debugfs entry, continuing\n"); - - return 0; } /* |