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

Commit cadb7345 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik
Browse files

[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()



Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent defc9cd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2342,7 +2342,7 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
	ata_qc_reinit(qc);

	/* setup sg table and init transfer direction */
	sg_init_one(&qc->sgent, cmd->sense_buffer, sizeof(cmd->sense_buffer));
	sg_init_one(&qc->sgent, cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE);
	ata_sg_init(qc, &qc->sgent, 1);
	qc->dma_dir = DMA_FROM_DEVICE;