remove unused but set variable to fix a compiler warning
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jul 2011 06:25:27 +0000 (08:25 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jul 2011 06:25:27 +0000 (08:25 +0200)
ucimap.c

index 7c4fb0240790aeb6c2386aa8c7deed8824bfda6d..33c254894c57c328178ae06860326fd78da124bd 100644 (file)
--- a/ucimap.c
+++ b/ucimap.c
@@ -207,7 +207,6 @@ static bool
 ucimap_handle_fixup(struct uci_map *map, struct ucimap_fixup *f)
 {
        void *ptr = ucimap_find_section(map, f);
-       struct ucimap_list *list;
        union ucimap_data *data;
 
        if (!ptr)
@@ -218,7 +217,6 @@ ucimap_handle_fixup(struct uci_map *map, struct ucimap_fixup *f)
                f->data->ptr = ptr;
                break;
        case UCIMAP_LIST:
-               list = f->data->list;
                data = ucimap_list_append(f->data->list);
                if (!data)
                        return false;