summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-17 18:56:24 +0100
committerJeff Garzik <jeff@garzik.org>2008-01-23 11:24:17 +0100
commit7ccd720da3857c21ea893448aaf73620cfe1d27e (patch)
tree5e42391c4cb3465ea0beadeec6c8f27523b2519b /drivers/ata/libata-scsi.c
parentpata_legacy: Merge winbond support (diff)
downloadlinux-7ccd720da3857c21ea893448aaf73620cfe1d27e.tar.xz
linux-7ccd720da3857c21ea893448aaf73620cfe1d27e.zip
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
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 989b7755af3d..3fd08201bef4 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -2331,7 +2331,7 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
DPRINTK("ATAPI request sense\n");
/* FIXME: is this needed? */
- memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer));
+ memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
ap->ops->tf_read(ap, &qc->tf);