aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-08-20 16:11:00 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 10:42:44 -0400
commitb06fc73a9ebd352065dd4dd3139fb53ed72ac970 (patch)
tree4396a2337dd0151b3f54926d7d1bd64d55d19f88 /drivers/scsi/qla4xxx
parent8afa1439fcff58da8f28c1d083046f229f6ab3de (diff)
[SCSI] qla4xxx: Removed residual from overrun debug print
The residual variable is only valid for udnerrun so do not print it out for the overrun case. Signed-off-by: Karen Higgins <karen.higgins@qlogic.com> [Mike Christie: Fix coding style issues in patch] Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_isr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c
index 8025ee16588e..c196d55eae39 100644
--- a/drivers/scsi/qla4xxx/ql4_isr.c
+++ b/drivers/scsi/qla4xxx/ql4_isr.c
@@ -227,11 +227,11 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha,
227 case SCS_DATA_UNDERRUN: 227 case SCS_DATA_UNDERRUN:
228 case SCS_DATA_OVERRUN: 228 case SCS_DATA_OVERRUN:
229 if ((sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) || 229 if ((sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) ||
230 (sts_entry->completionStatus == SCS_DATA_OVERRUN)) { 230 (sts_entry->completionStatus == SCS_DATA_OVERRUN)) {
231 DEBUG2(printk("scsi%ld:%d:%d:%d: %s: " "Data overrun, " 231 DEBUG2(printk("scsi%ld:%d:%d:%d: %s: " "Data overrun\n",
232 "residual = 0x%x\n", ha->host_no, 232 ha->host_no,
233 cmd->device->channel, cmd->device->id, 233 cmd->device->channel, cmd->device->id,
234 cmd->device->lun, __func__, residual)); 234 cmd->device->lun, __func__));
235 235
236 cmd->result = DID_ERROR << 16; 236 cmd->result = DID_ERROR << 16;
237 break; 237 break;