]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: remove addr_type - unused but set variable
authorHagen Paul Pfeifer <hagen@jauu.net>
Wed, 7 Sep 2011 18:48:37 +0000 (20:48 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 13 Sep 2011 17:39:03 +0000 (20:39 +0300)
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-run.c

index 13d85af5b3499ab2da32c489c4f35490aebb82ec..591fd77e6b4c90ce11a2102acae82e1632d9348b 100644 (file)
@@ -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");
        }