Skip to content

Commit 9a23ed5

Browse files
dTenebraemartinkpetersen
authored andcommitted
scsi: isci: Return result of sas_register_ha()
To properly manage possible failure of sas_register_ha() in isci_register_sas_ha(), return its result instead of zero Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Artem Chernyshev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Artur Paszkiewicz <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent bfaa4a0 commit 9a23ed5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/scsi/isci/init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ static int isci_register_sas_ha(struct isci_host *isci_host)
264264

265265
sas_ha->strict_wide_ports = 1;
266266

267-
sas_register_ha(sas_ha);
268-
269-
return 0;
267+
return sas_register_ha(sas_ha);
270268
}
271269

272270
static void isci_unregister(struct isci_host *isci_host)

0 commit comments

Comments
 (0)