提交 909706a2 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

libata: kill ATA_DNXFER_ANY

ATA_DNXFER_ANY isn't used anymore.  Kill it.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 7d47e8d4
......@@ -2360,15 +2360,6 @@ int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel)
udma_mask = 0;
break;
case ATA_DNXFER_ANY:
/* don't gear down to MWDMA from UDMA, go directly to PIO */
if (xfer_mask & ATA_MASK_UDMA)
xfer_mask &= ~ATA_MASK_MWDMA;
highbit = fls(xfer_mask) - 1;
xfer_mask &= ~(1 << highbit);
break;
default:
BUG();
}
......
......@@ -48,7 +48,6 @@ enum {
ATA_DNXFER_40C = 2, /* apply 40c cable limit */
ATA_DNXFER_FORCE_PIO = 3, /* force PIO */
ATA_DNXFER_FORCE_PIO0 = 4, /* force PIO0 */
ATA_DNXFER_ANY = 5, /* speed down any */
ATA_DNXFER_QUIET = (1 << 31),
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册