Skip to content

Commit

Permalink
[PATCH] libata: silly fix in ata_scsi_start_stop_xlat()
Browse files Browse the repository at this point in the history
Don't directly access &qc->tf when tf == &qc->tf.

Signed-off-by: Tejun Heo <htejun@gmail.com>
  • Loading branch information
Tejun Heo committed May 15, 2006
1 parent ee7863b commit c44078c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc,
tf->nsect = 1; /* 1 sector, lba=0 */

if (qc->dev->flags & ATA_DFLAG_LBA) {
qc->tf.flags |= ATA_TFLAG_LBA;
tf->flags |= ATA_TFLAG_LBA;

tf->lbah = 0x0;
tf->lbam = 0x0;
Expand Down

0 comments on commit c44078c

Please sign in to comment.