summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-05-23 21:29:48 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-05-28 14:28:46 +0200
commitce782938b86087bed21023ad6cfcd76a51d04f9e (patch)
tree6f3ddd944f277257f8396630525374f28e945b49 /block.c
parent826b6ca0b0c00bf27562a85bc073f800dad1259b (diff)
downloadqemu-ce782938b86087bed21023ad6cfcd76a51d04f9e.tar.gz
qemu-ce782938b86087bed21023ad6cfcd76a51d04f9e.tar.bz2
qemu-ce782938b86087bed21023ad6cfcd76a51d04f9e.zip
block: Drop redundant bdrv_refresh_limits
The above bdrv_set_backing_hd already does this. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block.c b/block.c
index aa9b5abf5d..a517d72d71 100644
--- a/block.c
+++ b/block.c
@@ -1182,9 +1182,6 @@ int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp)
}
bdrv_set_backing_hd(bs, backing_hd);
- /* Recalculate the BlockLimits with the backing file */
- bdrv_refresh_limits(bs);
-
free_exit:
g_free(backing_filename);
return ret;