[Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable
Signed-off-by: Juan Quintela --- xen-mapcache.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xen-mapcache.c b/xen-mapcache.c index fac47cd..e2e324d 100644 --- a/xen-mapcache.c +++ b/xen-mapcache.c @@ -232,7 +232,7 @@ uint8_t *qemu_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size, u ram_addr_t qemu_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; @@ -258,7 +258,6 @@ ram_addr_t qemu_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) { -- 1.7.6
Re: [Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable
On Mon, 11 Jul 2011, Juan Quintela wrote: > > Signed-off-by: Juan Quintela Acked-by: Stefano Stabellini > --- > xen-mapcache.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/xen-mapcache.c b/xen-mapcache.c > index fac47cd..e2e324d 100644 > --- a/xen-mapcache.c > +++ b/xen-mapcache.c > @@ -232,7 +232,7 @@ uint8_t *qemu_map_cache(target_phys_addr_t phys_addr, > target_phys_addr_t size, u > > ram_addr_t qemu_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; > @@ -258,7 +258,6 @@ ram_addr_t qemu_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) { > -- > 1.7.6 > >
Re: [Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable
On 07/11/2011 12:15 PM, Juan Quintela wrote: Signed-off-by: Juan Quintela Signed-off-by: Stefan Berger Been pointed to this patch after having posted the same. Stefan --- xen-mapcache.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xen-mapcache.c b/xen-mapcache.c index fac47cd..e2e324d 100644 --- a/xen-mapcache.c +++ b/xen-mapcache.c @@ -232,7 +232,7 @@ uint8_t *qemu_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size, u ram_addr_t qemu_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; @@ -258,7 +258,6 @@ ram_addr_t qemu_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) {
Re: [Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable
On Mon, Jul 11, 2011 at 06:15:11PM +0200, Juan Quintela wrote: > > Signed-off-by: Juan Quintela > --- > xen-mapcache.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) Since Stefano has acked it but it was not merged into qemu.git yet... Thanks, applied to the trivial patches tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches Stefan