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 <>
Signed-off-by: default avatarStefan Weil <>
Signed-off-by: default avatarKevin Wolf <>
parent 3de0a294
......@@ -267,9 +267,7 @@ static void bmdma_irq(void *opaque, int n, int level)
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