Skip to content

Commit

Permalink
[SCSI] qla2xxx: Data accessors Cleanup of last merge
Browse files Browse the repository at this point in the history
    - Left overs from last code merges of qla2xxx

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Jul 23, 2007
1 parent f695baf commit 4b39c1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,15 +1068,15 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt)
* values.
*/
if (resid &&
((unsigned)(cp->request_bufflen - resid) <
((unsigned)(scsi_bufflen(cp) - resid) <
cp->underflow)) {
DEBUG2(qla_printk(KERN_INFO, ha,
"scsi(%ld:%d:%d:%d): Mid-layer underflow "
"detected (%x of %x bytes)...returning "
"error status.\n", ha->host_no,
cp->device->channel, cp->device->id,
cp->device->lun, resid,
cp->request_bufflen));
scsi_bufflen(cp)));

cp->result = DID_ERROR << 16 | lscsi_status;
}
Expand Down

0 comments on commit 4b39c1d

Please sign in to comment.