]> xenbits.xensource.com Git - xen.git/commitdiff
x86: Fix (bogus) use-before-initialise compiler warning.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 18:03:16 +0000 (19:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 18:03:16 +0000 (19:03 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/hap/p2m-ept.c

index 1334e1e0fb9169120b550c759052efc9865a7552..7c7d0f51301dd5a0dad3d978e82d52ac59bda987 100644 (file)
@@ -234,7 +234,7 @@ ept_set_entry(struct domain *d, unsigned long gfn, mfn_t mfn,
 {
     ept_entry_t *table, *ept_entry;
     unsigned long gfn_remainder = gfn;
-    unsigned long offset;
+    unsigned long offset = 0;
     u32 index;
     int i, target = order / EPT_TABLE_ORDER;
     int rv = 0;