Skip to contentSkip to conversation

drivers/scsi/qla2xxx/qla_os.c: remove dead code

PATCH New Adrian Bunk 1 participant 1 message Apr 9, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/qla2xxx/qla_os.c: remove dead code

This patch removes some dead code found by the Coverity checker (rval can't be FAILED at the time of this check).

drivers/scsi/qla2xxx/qla_os.c renamed from drivers/scsi/qla2xxx/qla_os.c.old +0 -3
@@ -1649,14 +1649,11 @@ qla2xxx_eh_host_reset(struct scsi_cmnd *
 	clear_bit(ABORT_ISP_ACTIVE, &ha->dpc_flags);
 
 	spin_lock_irq(ha->host->host_lock);
-	if (rval == FAILED)
-		goto out;
 
 	/* Waiting for our command in done_queue to be returned to OS.*/
 	if (!qla2x00_eh_wait_for_pending_commands(ha))
 		rval = FAILED;
 
- out:
 	qla_printk(KERN_INFO, ha, "%s: reset %s\n", __func__,
 			(rval == FAILED) ? "failed" : "succeded");