OSDN Git Service
(root)
/
linux-kernel-docs
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b832548
)
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
author
James Bottomley
<James.Bottomley@HansenPartnership.com>
Thu, 17 Jan 2008 17:56:24 +0000
(11:56 -0600)
committer
Jeff Garzik
<jeff@garzik.org>
Wed, 23 Jan 2008 10:24:17 +0000
(
05:24
-0500)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-scsi.c
patch
|
blob
|
history
diff --git
a/drivers/ata/libata-scsi.c
b/drivers/ata/libata-scsi.c
index
989b775
..
3fd0820
100644
(file)
--- 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);