scsi: message: fusion: Initialize return value in mptfc_bus_reset()
Detected by smatch. Fixes: 17865dc2eccc ("scsi: message: fusion: Open-code mptfc_block_error_handler() for bus reset") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20231023073005.20766-1-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
3c978492c3
commit
4b1c079132
@ -265,7 +265,7 @@ mptfc_bus_reset(struct scsi_cmnd *SCpnt)
|
||||
MPT_SCSI_HOST __maybe_unused *hd = shost_priv(shost);
|
||||
int channel = SCpnt->device->channel;
|
||||
struct mptfc_rport_info *ri;
|
||||
int rtn;
|
||||
int rtn = FAILED;
|
||||
|
||||
list_for_each_entry(ri, &hd->ioc->fc_rports, list) {
|
||||
if (ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user