diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-06 08:10:40 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-07-09 15:53:02 +0200 |
commit | 368e8dd10a24a529612f37ba7370262f5ea5a814 (patch) | |
tree | fd132954ac5dab2240878175753810df26c22885 /block/blkdebug.c | |
parent | 820100fd15b66880df75415c6086a7ffeee7bf14 (diff) |
blkdebug: tiny cleanup
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 1eff9404ba..1f79ef2a00 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -361,9 +361,7 @@ static BlockDriverAIOCB *blkdebug_aio_readv(BlockDriverState *bs, return inject_error(bs, cb, opaque); } - BlockDriverAIOCB *acb = - bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); - return acb; + return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); } static BlockDriverAIOCB *blkdebug_aio_writev(BlockDriverState *bs, @@ -376,9 +374,7 @@ static BlockDriverAIOCB *blkdebug_aio_writev(BlockDriverState *bs, return inject_error(bs, cb, opaque); } - BlockDriverAIOCB *acb = - bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); - return acb; + return bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); } static void blkdebug_close(BlockDriverState *bs) |