parse: remove a check that is always true (due to unsigned data type)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 29 Oct 2013 15:48:23 +0000 (16:48 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 29 Oct 2013 15:48:23 +0000 (16:48 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
parse.c

diff --git a/parse.c b/parse.c
index 838a8353e509f02151c1ecc9dcff00d05e47bd25..63095b507d147f92e07523d6590e606c0304b9e3 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -35,7 +35,7 @@ void uci_parse_section(struct uci_section *s, const struct uci_parse_option *opt
                        if (strcmp(opts[i].name, o->e.name) != 0)
                                continue;
 
-                       if (opts[i].type >= 0 && opts[i].type != o->type)
+                       if (opts[i].type != o->type)
                                continue;
 
                        /* match found */