Commit 1b94727
committed
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>1 parent 0fecb50 commit 1b94727
1 file changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
1889 | | - | |
| 1889 | + | |
1890 | 1890 | | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
| 1891 | + | |
| 1892 | + | |
1894 | 1893 | | |
1895 | 1894 | | |
1896 | | - | |
| 1895 | + | |
1897 | 1896 | | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
| 1897 | + | |
| 1898 | + | |
1901 | 1899 | | |
1902 | 1900 | | |
1903 | | - | |
| 1901 | + | |
1904 | 1902 | | |
1905 | | - | |
| 1903 | + | |
1906 | 1904 | | |
1907 | 1905 | | |
1908 | 1906 | | |
| |||
0 commit comments