mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
scsi: isci: Fix an error code problem in isci_io_request_build()
[ Upstream commit658365c6b0
] Clang static complains that Value stored to 'status' is never read. Return 'status' rather than 'SCI_SUCCESS'. Fixes:f1f52e7593
("isci: uplevel request infrastructure") Signed-off-by: Su Hui <suhui@nfschina.com> Link: https://lore.kernel.org/r/20240112041926.3924315-1-suhui@nfschina.com Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
948090f66a
commit
dca11bfa01
@ -3398,7 +3398,7 @@ static enum sci_status isci_io_request_build(struct isci_host *ihost,
|
||||
return SCI_FAILURE;
|
||||
}
|
||||
|
||||
return SCI_SUCCESS;
|
||||
return status;
|
||||
}
|
||||
|
||||
static struct isci_request *isci_request_from_tag(struct isci_host *ihost, u16 tag)
|
||||
|
Loading…
Reference in New Issue
Block a user