From: Fam Zheng Date: Fri, 23 May 2014 13:29:48 +0000 (+0800) Subject: block: Drop redundant bdrv_refresh_limits X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ce782938b86087bed21023ad6cfcd76a51d04f9e;p=qemu.git block: Drop redundant bdrv_refresh_limits The above bdrv_set_backing_hd already does this. Signed-off-by: Fam Zheng Reviewed-by: Jeff Cody Signed-off-by: Stefan Hajnoczi --- 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;