ide: Remove unneeded null pointer check
commit1635eecc413ed680013cf77e6994901cafe15590
authorStefan Weil <weil@mail.berlios.de>
Sat, 15 Jan 2011 18:01:03 +0000 (15 19:01 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:41:49 +0000 (24 16:41 +0100)
tree7fd534ac118856b0e70223b50af19c8a64bb6e86
parent3de0a2944bdb3047dce275560631834bcb4afe22
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: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/pci.c