Commit 7ccd720d authored by James Bottomley's avatar James Bottomley Committed by Jeff Garzik

[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()

Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent b8325487
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment