From 06775a8da737a32fda7398e113360fdb8cf0ec79 Mon Sep 17 00:00:00 2001 From: Hagen Paul Pfeifer Date: Wed, 7 Sep 2011 20:48:37 +0200 Subject: [PATCH] kvm tools: remove addr_type - unused but set variable Signed-off-by: Hagen Paul Pfeifer Cc: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/builtin-run.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 13d85af5b349..591fd77e6b4c 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -178,7 +178,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; @@ -194,7 +193,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"); } -- 2.39.5