diff mbox

kvm-tool: remove addr_type - unused but set variable

Message ID 1315421317-3801-1-git-send-email-hagen@jauu.net (mailing list archive)
State New, archived
Headers show

Commit Message

Hagen Paul Pfeifer Sept. 7, 2011, 6:48 p.m. UTC
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Cc: Sasha Levin <levinsasha928@gmail.com>
Cc: Pekka Enberg <penberg@kernel.org>
---
 tools/kvm/builtin-run.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff mbox

Patch

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");
 	}