* [2.6 patch] drivers/scsi/qla2xxx/qla_os.c: remove dead code
@ 2005-04-09 23:06 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-04-09 23:06 UTC (permalink / raw)
To: andrew.vasquez; +Cc: linux-scsi, linux-kernel
This patch removes some dead code found by the Coverity checker (rval
can't be FAILED at the time of this check).
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc2-mm2-full/drivers/scsi/qla2xxx/qla_os.c.old 2005-04-09 22:24:09.000000000 +0200
+++ linux-2.6.12-rc2-mm2-full/drivers/scsi/qla2xxx/qla_os.c 2005-04-09 22:49:01.000000000 +0200
@@ -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");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-09 23:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-09 23:06 [2.6 patch] drivers/scsi/qla2xxx/qla_os.c: remove dead code Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox