Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Fix a compilation error in xen-mapcache.c
Browse files Browse the repository at this point in the history
This patch fixes a compilation error in xen-mapcache.c .

/home/stefanb/qemu/qemu-git/xen-mapcache.c: In function ‘xen_ram_addr_from_mapcache’:
/home/stefanb/qemu/qemu-git/xen-mapcache.c:240:42: error: variable ‘pentry’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Signed-off-by: Stefan Berger <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
stefanberger authored and Anthony Liguori committed Jul 29, 2011
1 parent 6b8273a commit ecf169b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xen-mapcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ uint8_t *xen_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size,

ram_addr_t xen_ram_addr_from_mapcache(void *ptr)
{
MapCacheEntry *entry = NULL, *pentry = NULL;
MapCacheEntry *entry = NULL;
MapCacheRev *reventry;
target_phys_addr_t paddr_index;
target_phys_addr_t size;
Expand All @@ -263,7 +263,6 @@ ram_addr_t xen_ram_addr_from_mapcache(void *ptr)

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

0 comments on commit ecf169b

Please sign in to comment.