block: Remove NULL check in bdrv_co_flush
commite914404efb9d2af79e08750c6700b642ea0d2ec7
authorFam Zheng <famz@redhat.com>
Wed, 26 Apr 2017 02:03:49 +0000 (26 10:03 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 13:39:50 +0000 (27 15:39 +0200)
treeca15bca9cb82d2e3ba9ff11550db6731336350a9
parent242e496b39d364765e428e182b3bdeee94cc5c84
block: Remove NULL check in bdrv_co_flush

Reported by Coverity. We already use bs in bdrv_inc_in_flight before
checking for NULL. It is unnecessary as all callers pass non-NULL bs, so
drop it.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c