Skip to content

Commit 40d3272

Browse files
Colin Ian Kingmartinkpetersen
authored andcommitted
scsi: mpt3sas: Fix incorrectly assigned error return and check
Currently the call to _base_static_config_pages() is assigning the error return to variable 'rc' but checking the error return in error 'r'. Fix this by assigning the error return to variable 'r' instead of 'rc'. Link: https://lore.kernel.org/r/[email protected] Fixes: 19a622c ("scsi: mpt3sas: Handle firmware faults during first half of IOC init") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Addresses-Coverity: ("Unused value")
1 parent dbe7633 commit 40d3272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpt3sas/mpt3sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7851,7 +7851,7 @@ _base_make_ioc_operational(struct MPT3SAS_ADAPTER *ioc)
78517851
return r;
78527852
}
78537853

7854-
rc = _base_static_config_pages(ioc);
7854+
r = _base_static_config_pages(ioc);
78557855
if (r)
78567856
return r;
78577857

0 commit comments

Comments
 (0)