summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2008-01-15 16:01:52 -0800
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:16 -0500
commitcadb7345d92628d46cccd3765cc15cb9cd6abccf (patch)
tree2d5895102c0cd9182521eb408d7c77333498c1f1 /drivers/ata/libata-scsi.c
parentdefc9cd826e4a99f550504a744f9407b518828ae (diff)
downloadlinux-cadb7345d92628d46cccd3765cc15cb9cd6abccf.tar.gz
linux-cadb7345d92628d46cccd3765cc15cb9cd6abccf.tar.bz2
linux-cadb7345d92628d46cccd3765cc15cb9cd6abccf.zip
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 15a4c8a20358..989b7755af3d 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -2342,7 +2342,7 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
ata_qc_reinit(qc);
/* setup sg table and init transfer direction */
- sg_init_one(&qc->sgent, cmd->sense_buffer, sizeof(cmd->sense_buffer));
+ sg_init_one(&qc->sgent, cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE);
ata_sg_init(qc, &qc->sgent, 1);
qc->dma_dir = DMA_FROM_DEVICE;