summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic.h
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-18 10:06:15 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-04-25 01:21:15 +0300
commit6942d531e2d22a72492502be010fee9030c58993 (patch)
tree2dbd4e8a709b214298b7e80f34104b8f12942548 /drivers/scsi/snic/snic.h
parentbaf3fbf26cc003eaf7612ea215d6cc191bd6f850 (diff)
downloadlinux-6942d531e2d22a72492502be010fee9030c58993.tar.xz
scsi: snic: Make snic_io_exch_ver_cmpl_handler() return void
This function does not need a return value since no callers depend on it. Make it return void. This also fixes the coccicheck warning: drivers/scsi/snic/snic_ctl.c:163:5-8: Unneeded variable: "ret". Return "0" on line 228 Link: https://lore.kernel.org/r/20200418070615.11603-1-yanaijie@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic/snic.h')
-rw-r--r--drivers/scsi/snic/snic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic.h b/drivers/scsi/snic/snic.h
index de0ab5fc8474..f4c666285bba 100644
--- a/drivers/scsi/snic/snic.h
+++ b/drivers/scsi/snic/snic.h
@@ -399,7 +399,7 @@ void snic_handle_link_event(struct snic *);
void snic_handle_link(struct work_struct *);
int snic_queue_exch_ver_req(struct snic *);
-int snic_io_exch_ver_cmpl_handler(struct snic *, struct snic_fw_req *);
+void snic_io_exch_ver_cmpl_handler(struct snic *, struct snic_fw_req *);
int snic_queue_wq_desc(struct snic *, void *os_buf, u16 len);