[PATCH] kvm-tool: remove addr_type - unused but set variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Hagen Paul Pfeifer <hagen@xxxxxxxx>
Cc: Sasha Levin <levinsasha928@xxxxxxxxx>
Cc: Pekka Enberg <penberg@xxxxxxxxxx>
---
 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");
 	}
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux