summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-03-31 15:48:52 +0200
committerJeff Garzik <jeff@garzik.org>2006-03-31 17:14:42 +0200
commitbe9a50c8524b53003e5fa32f072945772ffd13a5 (patch)
treea82555012a718f030f6be95fbec5336ff9b76cca /drivers
parent[PATCH] libata: make ata_qc_issue complete failed qcs (diff)
downloadlinux-be9a50c8524b53003e5fa32f072945772ffd13a5.tar.xz
linux-be9a50c8524b53003e5fa32f072945772ffd13a5.zip
[PATCH] libata: fix ata_xfer_tbl termination
ata_xfer_tbl is terminated by entry with -1 as ->shift. However, ->shift was unsigned int making the termination condition bogus. This patch converts ->shift and ->bits to int. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 63ae23b5c078..e63c1ff1e102 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -278,7 +278,7 @@ static void ata_unpack_xfermask(unsigned int xfer_mask,
}
static const struct ata_xfer_ent {
- unsigned int shift, bits;
+ int shift, bits;
u8 base;
} ata_xfer_tbl[] = {
{ ATA_SHIFT_PIO, ATA_BITS_PIO, XFER_PIO_0 },