]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block.c
megasas: do not read SCSI req parameters more than once from frame
[mirror_qemu.git] / block.c
diff --git a/block.c b/block.c
index 21cb65ebf3b0ba7295d1bb93f9a2a81366630585..46ea4a3bd579668001bf8c68529167f3b5b4cd10 100644 (file)
--- a/block.c
+++ b/block.c
@@ -3863,19 +3863,6 @@ BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs,
     return retval;
 }
 
-int bdrv_get_backing_file_depth(BlockDriverState *bs)
-{
-    if (!bs->drv) {
-        return 0;
-    }
-
-    if (!bs->backing) {
-        return 0;
-    }
-
-    return 1 + bdrv_get_backing_file_depth(bs->backing->bs);
-}
-
 void bdrv_init(void)
 {
     module_call_init(MODULE_INIT_BLOCK);