Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()



Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent b8325487
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);