Commit be33e2f8 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: ips: Change the return type of ips_release() into 'void'

ips_release() has one caller and that caller ignores the value returned by
ips_release(). Hence change the return type of that function into 'void'.

Link: https://lore.kernel.org/r/20220218195117.25689-3-bvanassche@acm.org
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: John Garry <john.garry@huawei.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 2cf0e0a9
...@@ -638,8 +638,7 @@ ips_setup_funclist(ips_ha_t * ha) ...@@ -638,8 +638,7 @@ ips_setup_funclist(ips_ha_t * ha)
/* Remove a driver */ /* Remove a driver */
/* */ /* */
/****************************************************************************/ /****************************************************************************/
static int static void ips_release(struct Scsi_Host *sh)
ips_release(struct Scsi_Host *sh)
{ {
ips_scb_t *scb; ips_scb_t *scb;
ips_ha_t *ha; ips_ha_t *ha;
...@@ -660,7 +659,7 @@ ips_release(struct Scsi_Host *sh) ...@@ -660,7 +659,7 @@ ips_release(struct Scsi_Host *sh)
ha = IPS_HA(sh); ha = IPS_HA(sh);
if (!ha) if (!ha)
return (FALSE); return;
/* flush the cache on the controller */ /* flush the cache on the controller */
scb = &ha->scbs[ha->max_cmds - 1]; scb = &ha->scbs[ha->max_cmds - 1];
...@@ -698,8 +697,6 @@ ips_release(struct Scsi_Host *sh) ...@@ -698,8 +697,6 @@ ips_release(struct Scsi_Host *sh)
scsi_host_put(sh); scsi_host_put(sh);
ips_released_controllers++; ips_released_controllers++;
return (FALSE);
} }
/****************************************************************************/ /****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment