summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic_stats.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 16:09:03 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-29 00:40:54 -0500
commitfd84ec206d7a0d5a2aa0c3c78868deec6bfcd050 (patch)
tree733e4d7de95c57a0baf954639d8e36ec25276edc /drivers/scsi/snic/snic_stats.h
parent1dbaa379a419343dab5f99f253d8225b5ab4f939 (diff)
scsi: snic: 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: Karan Tilak Kumar <kartilak@cisco.com> Cc: Sesidhar Baddela <sebaddel@cisco.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic/snic_stats.h')
-rw-r--r--drivers/scsi/snic/snic_stats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic_stats.h b/drivers/scsi/snic/snic_stats.h
index fd1066b1cad5..faf0cb601954 100644
--- a/drivers/scsi/snic/snic_stats.h
+++ b/drivers/scsi/snic/snic_stats.h
@@ -99,7 +99,7 @@ struct snic_stats {
atomic64_t io_cmpl_skip;
};
-int snic_stats_debugfs_init(struct snic *);
+void snic_stats_debugfs_init(struct snic *);
void snic_stats_debugfs_remove(struct snic *);
/* Auxillary function to update active IO counter */