aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/symbol.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 020a0ac147e1..b664d6ed515f 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -963,7 +963,7 @@ struct sym_match {
963 * - first, symbols that match exactly 963 * - first, symbols that match exactly
964 * - then, alphabetical sort 964 * - then, alphabetical sort
965 */ 965 */
966static int sym_rel_comp( const void *sym1, const void *sym2 ) 966static int sym_rel_comp(const void *sym1, const void *sym2)
967{ 967{
968 struct sym_match *s1 = *(struct sym_match **)sym1; 968 struct sym_match *s1 = *(struct sym_match **)sym1;
969 struct sym_match *s2 = *(struct sym_match **)sym2; 969 struct sym_match *s2 = *(struct sym_match **)sym2;
@@ -1014,9 +1014,8 @@ struct symbol **sym_re_search(const char *pattern)
1014 void *tmp; 1014 void *tmp;
1015 size += 16; 1015 size += 16;
1016 tmp = realloc(sym_match_arr, size * sizeof(struct sym_match *)); 1016 tmp = realloc(sym_match_arr, size * sizeof(struct sym_match *));
1017 if (!tmp) { 1017 if (!tmp)
1018 goto sym_re_search_free; 1018 goto sym_re_search_free;
1019 }
1020 sym_match_arr = tmp; 1019 sym_match_arr = tmp;
1021 } 1020 }
1022 sym_calc_value(sym); 1021 sym_calc_value(sym);
@@ -1024,7 +1023,7 @@ struct symbol **sym_re_search(const char *pattern)
1024 if (!tmp_sym_match) 1023 if (!tmp_sym_match)
1025 goto sym_re_search_free; 1024 goto sym_re_search_free;
1026 tmp_sym_match->sym = sym; 1025 tmp_sym_match->sym = sym;
1027 /* As regexec return 0, we know we have a match, so 1026 /* As regexec returned 0, we know we have a match, so
1028 * we can use match[0].rm_[se]o without further checks 1027 * we can use match[0].rm_[se]o without further checks
1029 */ 1028 */
1030 tmp_sym_match->so = match[0].rm_so; 1029 tmp_sym_match->so = match[0].rm_so;