From patchwork Wed Sep 7 18:48:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hagen Paul Pfeifer X-Patchwork-Id: 1128262 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p87Imp5n017616 for ; Wed, 7 Sep 2011 18:48:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756641Ab1IGSss (ORCPT ); Wed, 7 Sep 2011 14:48:48 -0400 Received: from alternativer.internetendpunkt.de ([88.198.24.89]:48313 "EHLO geheimer.internetendpunkt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752194Ab1IGSsr (ORCPT ); Wed, 7 Sep 2011 14:48:47 -0400 Received: by geheimer.internetendpunkt.de (Postfix, from userid 1000) id D3CE0F44145; Wed, 7 Sep 2011 20:48:43 +0200 (CEST) From: Hagen Paul Pfeifer To: kvm@vger.kernel.org Cc: Hagen Paul Pfeifer , Sasha Levin , Pekka Enberg Subject: [PATCH] kvm-tool: remove addr_type - unused but set variable Date: Wed, 7 Sep 2011 20:48:37 +0200 Message-Id: <1315421317-3801-1-git-send-email-hagen@jauu.net> X-Mailer: git-send-email 1.7.4.1.57.g0466.dirty Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 07 Sep 2011 18:48:52 +0000 (UTC) Signed-off-by: Hagen Paul Pfeifer Cc: Sasha Levin Cc: Pekka Enberg --- tools/kvm/builtin-run.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 725c23c..53ab911 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -177,7 +177,6 @@ static int shmem_parser(const struct option *opt, const char *arg, int unset) const uint64_t default_phys_addr = SHMEM_DEFAULT_ADDR; const char *default_handle = SHMEM_DEFAULT_HANDLE; struct shmem_info *si = malloc(sizeof(struct shmem_info)); - enum { PCI, UNK } addr_type = PCI; uint64_t phys_addr; uint64_t size; char *handle = NULL; @@ -193,7 +192,6 @@ static int shmem_parser(const struct option *opt, const char *arg, int unset) /* parse out optional addr family */ if (strcasestr(p, "pci:")) { p += skip_pci; - addr_type = PCI; } else if (strcasestr(p, "mem:")) { die("I can't add to E820 map yet.\n"); }