Patchwork qcow2: Fix build with DEBUG_EXT enabled

login
register
mail settings
Submitter Kevin Wolf
Date Feb. 17, 2012, 5:46 p.m.
Message ID <1329500770-19177-1-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/141949/
State New
Headers show

Comments

Kevin Wolf - Feb. 17, 2012, 5:46 p.m.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 block/qcow2.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/block/qcow2.c b/block/qcow2.c
index 3692b45..dea12c1 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -89,7 +89,6 @@  static int qcow2_read_extensions(BlockDriverState *bs, uint64_t start_offset,
     while (offset < end_offset) {
 
 #ifdef DEBUG_EXT
-        BDRVQcowState *s = bs->opaque;
         /* Sanity check */
         if (offset > s->cluster_size)
             printf("qcow2_read_extension: suspicious offset %lu\n", offset);