scsi: isci: Remove redundant check in isci_task_request_build()
authorArtem Chernyshev <artem.chernyshev@red-soft.ru>
Tue, 28 Nov 2023 12:11:59 +0000 (15:11 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Dec 2023 02:13:15 +0000 (21:13 -0500)
commit25cba909ade2a24f7356dc547dc417042bcef722
treed07d5c71f7801f55a5b342ddfd497bf9d06945dc
parent84e46978b91f387d5d153f7f76ddc87471f4a52c
scsi: isci: Remove redundant check in isci_task_request_build()

sci_task_request_construct_ssp() has invariant return. Change this function
to void and get rid of unnecessary checks.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Link: https://lore.kernel.org/r/20231128121159.2373975-1-artem.chernyshev@red-soft.ru
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/isci/request.c
drivers/scsi/isci/request.h
drivers/scsi/isci/task.c