From patchwork Thu Jun 2 11:53:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 98373 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2594EB6F97 for ; Thu, 2 Jun 2011 22:07:04 +1000 (EST) Received: from localhost ([::1]:58683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6g0-00086m-Td for incoming@patchwork.ozlabs.org; Thu, 02 Jun 2011 08:07:01 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6U7-0005lO-Qs for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS6U6-0005jR-2P for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6U5-0005j3-Jh for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:41 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p52Bseiv001786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 2 Jun 2011 07:54:40 -0400 Received: from neno.mitica (vpn1-5-74.ams2.redhat.com [10.36.5.74]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p52BsYdM015781; Thu, 2 Jun 2011 07:54:39 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 2 Jun 2011 13:53:39 +0200 Message-Id: <3bf2bf0ab35246df0fa72fddce3461c0e6ee4aff.1307014902.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 04/14] xen: pentry is not used in this function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 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) {