diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2007-12-30 04:32:22 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-01-23 05:24:15 -0500 |
commit | 4ca4e439640cd1d3659cbcf60e7a73c2ae0450b3 (patch) | |
tree | 659dceb7469341dca95d7a96774e787c3b510872 /drivers/ata/libata-scsi.c | |
parent | 35a10a80daa04b7316d6bac1b1402cc347c35b1e (diff) |
libata annotations and fixes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 42bf61599730..15a4c8a20358 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -2210,7 +2210,7 @@ unsigned int ata_scsiop_read_cap(struct ata_scsi_args *args, u8 *rbuf, | |||
2210 | 2210 | ||
2211 | /* sector size */ | 2211 | /* sector size */ |
2212 | ATA_SCSI_RBUF_SET(6, ATA_SECT_SIZE >> 8); | 2212 | ATA_SCSI_RBUF_SET(6, ATA_SECT_SIZE >> 8); |
2213 | ATA_SCSI_RBUF_SET(7, ATA_SECT_SIZE); | 2213 | ATA_SCSI_RBUF_SET(7, ATA_SECT_SIZE & 0xff); |
2214 | } else { | 2214 | } else { |
2215 | /* sector count, 64-bit */ | 2215 | /* sector count, 64-bit */ |
2216 | ATA_SCSI_RBUF_SET(0, last_lba >> (8 * 7)); | 2216 | ATA_SCSI_RBUF_SET(0, last_lba >> (8 * 7)); |
@@ -2224,7 +2224,7 @@ unsigned int ata_scsiop_read_cap(struct ata_scsi_args *args, u8 *rbuf, | |||
2224 | 2224 | ||
2225 | /* sector size */ | 2225 | /* sector size */ |
2226 | ATA_SCSI_RBUF_SET(10, ATA_SECT_SIZE >> 8); | 2226 | ATA_SCSI_RBUF_SET(10, ATA_SECT_SIZE >> 8); |
2227 | ATA_SCSI_RBUF_SET(11, ATA_SECT_SIZE); | 2227 | ATA_SCSI_RBUF_SET(11, ATA_SECT_SIZE & 0xff); |
2228 | } | 2228 | } |
2229 | 2229 | ||
2230 | return 0; | 2230 | return 0; |