aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index f13dd07a5331..7a55c2e4ea6e 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -1027,8 +1027,7 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc, const u8 *scs
1027 tf->flags |= ATA_TFLAG_DEVICE; 1027 tf->flags |= ATA_TFLAG_DEVICE;
1028 tf->protocol = ATA_PROT_NODATA; 1028 tf->protocol = ATA_PROT_NODATA;
1029 1029
1030 if ((qc->dev->flags & ATA_DFLAG_LBA48) && 1030 if (qc->dev->flags & ATA_DFLAG_FLUSH_EXT)
1031 (ata_id_has_flush_ext(qc->dev->id)))
1032 tf->command = ATA_CMD_FLUSH_EXT; 1031 tf->command = ATA_CMD_FLUSH_EXT;
1033 else 1032 else
1034 tf->command = ATA_CMD_FLUSH; 1033 tf->command = ATA_CMD_FLUSH;