[SCSI] qla2xxx: Data accessors Cleanup of last merge
- 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>
This commit is contained in:
parent
f695baf2df
commit
4b39c1d983
@ -1068,7 +1068,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt)
|
|||||||
* values.
|
* values.
|
||||||
*/
|
*/
|
||||||
if (resid &&
|
if (resid &&
|
||||||
((unsigned)(cp->request_bufflen - resid) <
|
((unsigned)(scsi_bufflen(cp) - resid) <
|
||||||
cp->underflow)) {
|
cp->underflow)) {
|
||||||
DEBUG2(qla_printk(KERN_INFO, ha,
|
DEBUG2(qla_printk(KERN_INFO, ha,
|
||||||
"scsi(%ld:%d:%d:%d): Mid-layer underflow "
|
"scsi(%ld:%d:%d:%d): Mid-layer underflow "
|
||||||
@ -1076,7 +1076,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt)
|
|||||||
"error status.\n", ha->host_no,
|
"error status.\n", ha->host_no,
|
||||||
cp->device->channel, cp->device->id,
|
cp->device->channel, cp->device->id,
|
||||||
cp->device->lun, resid,
|
cp->device->lun, resid,
|
||||||
cp->request_bufflen));
|
scsi_bufflen(cp)));
|
||||||
|
|
||||||
cp->result = DID_ERROR << 16 | lscsi_status;
|
cp->result = DID_ERROR << 16 | lscsi_status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user