diff mbox

[04/14] xen: pentry is not used in this function

Message ID 3bf2bf0ab35246df0fa72fddce3461c0e6ee4aff.1307014902.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela June 2, 2011, 11:53 a.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 xen-mapcache.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/xen-mapcache.c b/xen-mapcache.c
index 349cc62..a2419dc 100644
--- a/xen-mapcache.c
+++ b/xen-mapcache.c
@@ -198,7 +198,7 @@  uint8_t *qemu_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size, u

 void qemu_map_cache_unlock(void *buffer)
 {
-    MapCacheEntry *entry = NULL, *pentry = NULL;
+    MapCacheEntry *entry = NULL;
     MapCacheRev *reventry;
     target_phys_addr_t paddr_index;
     int found = 0;
@@ -218,7 +218,6 @@  void qemu_map_cache_unlock(void *buffer)

     entry = &mapcache->entry[paddr_index % mapcache->nr_buckets];
     while (entry && entry->paddr_index != paddr_index) {
-        pentry = entry;
         entry = entry->next;
     }
     if (!entry) {