aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/imm.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-02 17:38:09 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:54:33 -0400
commitf01f9d59433dd9d244664c19771e078a194e7984 (patch)
tree09ec8e0c0d58267170f6ae3f40b4bf5a56a50d6f /drivers/scsi/imm.c
parent5975f643efc39ebb762dfaf18ca6f2c95983dac0 (diff)
[SCSI] imm: fix check-after-use
The Coverity checker spotted that we have already oops'ed if "cmd" was NULL. Since "cmd" being NULL doesn't seem to be possible at this point this patch removes the NULL check. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/imm.c')
-rw-r--r--drivers/scsi/imm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 005d2b05f32d..74cdc1f0a78f 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -740,10 +740,6 @@ static void imm_interrupt(struct work_struct *work)
740 struct Scsi_Host *host = cmd->device->host; 740 struct Scsi_Host *host = cmd->device->host;
741 unsigned long flags; 741 unsigned long flags;
742 742
743 if (!cmd) {
744 printk("IMM: bug in imm_interrupt\n");
745 return;
746 }
747 if (imm_engine(dev, cmd)) { 743 if (imm_engine(dev, cmd)) {
748 schedule_delayed_work(&dev->imm_tq, 1); 744 schedule_delayed_work(&dev->imm_tq, 1);
749 return; 745 return;