From: Felix Fietkau Date: Tue, 29 Oct 2013 15:48:23 +0000 (+0100) Subject: parse: remove a check that is always true (due to unsigned data type) X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=be457b5263f1f0504e50c241c18e21bb340cef7e parse: remove a check that is always true (due to unsigned data type) Signed-off-by: Felix Fietkau --- diff --git a/parse.c b/parse.c index 838a835..63095b5 100644 --- 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 */