aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorDavid Somayajulu <david.somayajulu@qlogic.com>2008-02-21 03:43:00 -0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-02-22 17:14:12 -0600
commit65fecc77f3c47c5e8758d133b8ec47dcc16ed207 (patch)
tree4102258366decf5e24e94ea7f410d91340219938 /drivers/scsi/qla4xxx
parent[SCSI] libsas: fix error handling (diff)
downloadlinux-dev-65fecc77f3c47c5e8758d133b8ec47dcc16ed207.tar.xz
linux-dev-65fecc77f3c47c5e8758d133b8ec47dcc16ed207.zip
[SCSI] qla4xxx: fix up residual handling
the check in the residual case has an incorrect test of scsi_status (the logic is reversed, it should be scsi_status != 0 instead of !scsi_status. Since we checked a few lines above that scsi_status was non-zero, just eliminate this test Signed-off-by: David C Somayajulu <david.somayajulu@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_isr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c
index 0f029d0d7315..fc84db4069f4 100644
--- a/drivers/scsi/qla4xxx/ql4_isr.c
+++ b/drivers/scsi/qla4xxx/ql4_isr.c
@@ -100,8 +100,7 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha,
if (sts_entry->iscsiFlags &ISCSI_FLAG_RESIDUAL_UNDER) {
scsi_set_resid(cmd, residual);
- if (!scsi_status && ((scsi_bufflen(cmd) - residual) <
- cmd->underflow)) {
+ if ((scsi_bufflen(cmd) - residual) < cmd->underflow) {
cmd->result = DID_ERROR << 16;