diff options
author | Tejun Heo <htejun@gmail.com> | 2006-03-31 22:48:52 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-31 10:14:42 -0500 |
commit | be9a50c8524b53003e5fa32f072945772ffd13a5 (patch) | |
tree | a82555012a718f030f6be95fbec5336ff9b76cca /drivers/scsi/libata-core.c | |
parent | 8e0e694a3a48212bfe29a9ad3cd592bf68dfec81 (diff) | |
download | linux-be9a50c8524b53003e5fa32f072945772ffd13a5.tar.gz linux-be9a50c8524b53003e5fa32f072945772ffd13a5.tar.bz2 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/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
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 }, |