Commit 6ac586f
libata-scsi: fix checking of DMA state
Checking if DMA is enabled should be done via the
ata_dma_enabled helper function, since the init state
0xff indicates disabled.
Change based on code review, not tested due to lack of hardware.
Signed-off-by: Reimar Döffinger <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>1 parent f971a85 commit 6ac586f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2981 | 2981 | | |
2982 | 2982 | | |
2983 | 2983 | | |
2984 | | - | |
| 2984 | + | |
2985 | 2985 | | |
2986 | 2986 | | |
2987 | 2987 | | |
| |||
3131 | 3131 | | |
3132 | 3132 | | |
3133 | 3133 | | |
3134 | | - | |
| 3134 | + | |
3135 | 3135 | | |
3136 | 3136 | | |
3137 | 3137 | | |
| |||
0 commit comments