block: avoid useless checks on acb->bh
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Nov 2011 16:50:54 +0000 (17:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2011 11:40:08 +0000 (12:40 +0100)
commit3f3aace83046a6740d4e6f92811d333c6741db00
tree578d665c6d1a62ddcdf360d9a828c82c5b4a41c8
parentb9b2008bbff49e2714491a95109e1189e54a6491
block: avoid useless checks on acb->bh

Coverity is confused by this "if" and reports leaks on acb->bh.
The bottom half is always deleted before releasing the AIOCB,
in either bdrv_aio_cancel_em or bdrv_aio_bh_cb.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c