]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: libata-sata: simplify ata_sas_queuecmd()
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 18 Feb 2026 23:18:52 +0000 (08:18 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 24 Feb 2026 00:40:58 +0000 (09:40 +0900)
commita21b4040b3886555cba5e72ef475a556ad04700d
treed468e2342eafcefc7c89242b214bc0c67d8085cd
parent6158e34e594dd150f3f2df81a1b0fe636e156757
ata: libata-sata: simplify ata_sas_queuecmd()

Change ata_sas_queuecmd() to return early the result of
__ata_scsi_queuecmd() and remove the rc local variable.
This simplifies the code without any functional change.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/ata/libata-sata.c