@@ -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) {
Signed-off-by: Juan Quintela <quintela@redhat.com> --- xen-mapcache.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)