]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: aacraid: Improve code readability
authorBart Van Assche <bvanassche@acm.org>
Tue, 21 Oct 2025 20:17:43 +0000 (13:17 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Oct 2025 03:01:00 +0000 (23:01 -0400)
commite414748b7e83673cc777ce33e44d90e5157d687f
treef42f0a6bb05b65b4a6482af8b7ee74a951c7ca33
parentbb798c1f43c0010d792b93dc9cbb9cef7a052f61
scsi: aacraid: Improve code readability

aac_queuecommand() is a scsi_host_template.queuecommand()
implementation.  Any value returned by this function other than one of
the following values is translated into SCSI_MLQUEUE_HOST_BUSY:

* 0
* SCSI_MLQUEUE_HOST_BUSY
* SCSI_MLQUEUE_DEVICE_BUSY
* SCSI_MLQUEUE_EH_RETRY
* SCSI_MLQUEUE_TARGET_BUSY

Improve readability of aac_queuecommand() by returning
SCSI_MLQUEUE_HOST_BUSY instead of FAILED.

Cc: Gilbert Wu <gilbert.wu@microchip.com>
Cc: Sagar Biradar <Sagar.Biradar@microchip.com>
Cc: John Garry <john.g.garry@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251021201743.3539900-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c