]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Simplify control flow in scmd_eh_abort_handler()
authorEwan D. Milne <emilne@redhat.com>
Fri, 29 Oct 2021 19:43:11 +0000 (15:43 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Nov 2021 02:41:56 +0000 (21:41 -0500)
commitebb8a9bf871dd6f39af33c80f65802350499aa2d
treef2692cf1694969758d3f6c233638e42ca243e715
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
scsi: core: Simplify control flow in scmd_eh_abort_handler()

Simplify the nested conditionals in the function by using a label for the
error path.  Introduce local "shost" to avoid repeated "sdev->shost" usage.
Also remove scsi_eh_complete_abort() since there is now only one place it
would be called.

Link: https://lore.kernel.org/r/20211029194311.17504-3-emilne@redhat.com
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_error.c