Commit 1635eecc authored by Stefan Weil's avatar Stefan Weil Committed by Kevin Wolf
Browse files

ide: Remove unneeded null pointer check



With bm == NULL, other code in the same function would crash.

This bug was reported by cppcheck:
hw/ide/pci.c:280: error: Possible null pointer dereference: bm

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 3de0a294
......@@ -267,9 +267,7 @@ static void bmdma_irq(void *opaque, int n, int level)
return;
}
if (bm) {
bm->status |= BM_STATUS_INT;
}
bm->status |= BM_STATUS_INT;
/* trigger the real irq */
qemu_set_irq(bm->irq, level);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment