Skip to content

Commit

Permalink
[SCSI] imm: fix check-after-use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and James Bottomley committed Oct 12, 2007
1 parent 5975f64 commit f01f9d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/scsi/imm.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,10 +740,6 @@ static void imm_interrupt(struct work_struct *work)
struct Scsi_Host *host = cmd->device->host;
unsigned long flags;

if (!cmd) {
printk("IMM: bug in imm_interrupt\n");
return;
}
if (imm_engine(dev, cmd)) {
schedule_delayed_work(&dev->imm_tq, 1);
return;
Expand Down

0 comments on commit f01f9d5

Please sign in to comment.