[SCSI] imm: fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Tue, 2 Oct 2007 21:38:09 +0000 (14:38 -0700)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:54:33 +0000 (14:54 -0400)
commitf01f9d59433dd9d244664c19771e078a194e7984
tree09ec8e0c0d58267170f6ae3f40b4bf5a56a50d6f
parent5975f643efc39ebb762dfaf18ca6f2c95983dac0
[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>
drivers/scsi/imm.c