Skip to content

Commit

Permalink
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
James Bottomley authored and Jeff Garzik committed Jan 23, 2008
1 parent b832548 commit 7ccd720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7ccd720

Please sign in to comment.