Browse Source

parse: remove a check that is always true (due to unsigned data type)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Felix Fietkau 6 years ago
parent
commit
be457b5263
1 changed files with 1 additions and 1 deletions
  1. 1 1
      parse.c

+ 1 - 1
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 */