diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-01-13 01:46:13 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 12:29:27 -0500 |
commit | b80ca4f7ee36c26d300c5a8f429e73372d153379 (patch) | |
tree | 277987f64a44e793eb35c0bde3e48b582fad445a /drivers/scsi/aha1542.c | |
parent | 94aa5e5f6251ca0e1d77e083f8c2f9f40ee548c5 (diff) |
[SCSI] replace sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE
This replaces sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE in
several LLDs. It's a preparation for the future changes to remove
sense_buffer array in scsi_cmnd structure.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
-rw-r--r-- | drivers/scsi/aha1542.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 5b69a88d0e4c..190568ebea3c 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c | |||
@@ -536,7 +536,7 @@ static void aha1542_intr_handle(struct Scsi_Host *shost, void *dev_id) | |||
536 | we will still have it in the cdb when we come back */ | 536 | we will still have it in the cdb when we come back */ |
537 | if (ccb[mbo].tarstat == 2) | 537 | if (ccb[mbo].tarstat == 2) |
538 | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], | 538 | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
539 | sizeof(SCtmp->sense_buffer)); | 539 | SCSI_SENSE_BUFFERSIZE); |
540 | 540 | ||
541 | 541 | ||
542 | /* is there mail :-) */ | 542 | /* is there mail :-) */ |
@@ -609,7 +609,7 @@ static int aha1542_queuecommand(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) | |||
609 | #if 0 | 609 | #if 0 |
610 | /* scsi_request_sense() provides a buffer of size 256, | 610 | /* scsi_request_sense() provides a buffer of size 256, |
611 | so there is no reason to expect equality */ | 611 | so there is no reason to expect equality */ |
612 | if (bufflen != sizeof(SCpnt->sense_buffer)) | 612 | if (bufflen != SCSI_SENSE_BUFFERSIZE) |
613 | printk(KERN_CRIT "aha1542: Wrong buffer length supplied " | 613 | printk(KERN_CRIT "aha1542: Wrong buffer length supplied " |
614 | "for request sense (%d)\n", bufflen); | 614 | "for request sense (%d)\n", bufflen); |
615 | #endif | 615 | #endif |