提交 7ccd720d 编写于 作者: J James Bottomley 提交者: Jeff Garzik

[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()

Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册