ata: libata: Cleanup inline DMA helper functions
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 28 Aug 2023 04:10:28 +0000 (13:10 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 3 Oct 2023 00:39:50 +0000 (09:39 +0900)
commit1b947279798fd51bef46e8241102f5b896add021
tree7617040df32b9e58ebf43a176a5a6d863081825a
parent0fecb50891aa8731f39c65ab59c3f5d3cf2ce468
ata: libata: Cleanup inline DMA helper functions

Simplify the inline DMA helper functions ata_using_mwdma(),
ata_using_udma() and ata_dma_enabled() to directly return as a boolean
the result of their test condition.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
include/linux/libata.h