mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
[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>
This commit is contained in:
parent
5975f643ef
commit
f01f9d5943
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user