提交 4b39c1d9 编写于 作者: B Boaz Harrosh 提交者: James Bottomley

[SCSI] qla2xxx: Data accessors Cleanup of last merge

    - Left overs from last code merges of qla2xxx
Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
Acked-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 f695baf2
......@@ -1068,7 +1068,7 @@ 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 "
......@@ -1076,7 +1076,7 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt)
"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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册