diff options
author | Eric Blake <eblake@redhat.com> | 2017-06-05 15:38:44 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-07-10 13:18:05 +0200 |
commit | d5254033daf524fb2eee862eb8377b9ddc81000a (patch) | |
tree | 459bfed8bfa618fa9b3188d571e2bea61a31f64f /block/commit.c | |
parent | 81c219ac6ce0d6182e35f3976f2caa4cefcaf9f0 (diff) | |
download | qemu-d5254033daf524fb2eee862eb8377b9ddc81000a.zip qemu-d5254033daf524fb2eee862eb8377b9ddc81000a.tar.gz qemu-d5254033daf524fb2eee862eb8377b9ddc81000a.tar.bz2 |
block: Simplify use of BDRV_BLOCK_RAW
The lone caller that cares about a return of BDRV_BLOCK_RAW
(namely, io.c:bdrv_co_get_block_status) completely replaces the
return value, so there is no point in passing BDRV_BLOCK_DATA.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
-rw-r--r-- | block/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/commit.c b/block/commit.c index 8c09c3d..524bd54 100644 --- a/block/commit.c +++ b/block/commit.c @@ -253,7 +253,7 @@ static int64_t coroutine_fn bdrv_commit_top_get_block_status( { *pnum = nb_sectors; *file = bs->backing->bs; - return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_DATA | + return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | (sector_num << BDRV_SECTOR_BITS); } |