Daniel Henrique Barboza 7803696d85 block-backend: simplify blk_get_aio_context
blk_get_aio_context verifies if BlockDriverState bs is not NULL,
return bdrv_get_aio_context(bs) if true or qemu_get_aio_context()
otherwise. However, bdrv_get_aio_context from block.c already does
this verification itself, also returning qemu_get_aio_context()
if bs is NULL:

AioContext *bdrv_get_aio_context(BlockDriverState *bs)
{
    return bs ? bs->aio_context : qemu_get_aio_context();
}

This patch simplifies blk_get_aio_context to simply call
bdrv_get_aio_context instead of replicating the same logic.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-05-15 16:11:41 +02:00
..
2018-04-10 16:33:47 +02:00
2018-03-09 15:17:47 +01:00
2018-03-13 17:05:00 -04:00
2016-10-07 14:14:06 +02:00
2018-02-09 05:05:11 +01:00
2018-04-16 13:35:32 +02:00
2017-07-17 11:34:11 +08:00
2018-04-10 16:33:47 +02:00
2018-03-19 12:01:24 +01:00
2016-09-23 11:42:52 +08:00
2017-08-31 12:29:07 +02:00