Re: [Qemu-devel] [PATCH] pci: Remove unneeded null pointer check

2011-01-17 Thread Kevin Wolf
Am 15.01.2011 19:01, schrieb Stefan Weil: > 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: Stefan Weil Thanks, applied to the block

[Qemu-devel] [PATCH] pci: Remove unneeded null pointer check

2011-01-15 Thread Stefan Weil
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: Stefan Weil --- hw/ide/pci.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff