diff options
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index a4c0b04cfdbd..5353b28b2939 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c | |||
@@ -556,7 +556,7 @@ ips_setup(char *ips_str) | |||
556 | * We now have key/value pairs. | 556 | * We now have key/value pairs. |
557 | * Update the variables | 557 | * Update the variables |
558 | */ | 558 | */ |
559 | for (i = 0; i < (sizeof (options) / sizeof (options[0])); i++) { | 559 | for (i = 0; i < ARRAY_SIZE(options); i++) { |
560 | if (strnicmp | 560 | if (strnicmp |
561 | (key, options[i].option_name, | 561 | (key, options[i].option_name, |
562 | strlen(options[i].option_name)) == 0) { | 562 | strlen(options[i].option_name)) == 0) { |
@@ -4364,7 +4364,7 @@ ips_rdcap(ips_ha_t * ha, ips_scb_t * scb) | |||
4364 | 4364 | ||
4365 | METHOD_TRACE("ips_rdcap", 1); | 4365 | METHOD_TRACE("ips_rdcap", 1); |
4366 | 4366 | ||
4367 | if (scb->scsi_cmd->bufflen < 8) | 4367 | if (scb->scsi_cmd->request_bufflen < 8) |
4368 | return (0); | 4368 | return (0); |
4369 | 4369 | ||
4370 | cap.lba = | 4370 | cap.lba = |