aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-07-16 14:28:51 -0400
committerYann E. MORIN <yann.morin.1998@free.fr>2013-07-16 14:34:44 -0400
commit803b3519880f255563d8590c1f5870398b9a4ea0 (patch)
treeea39b3809f2d78648523a85ac11e537e555d0610 /scripts
parentf6eb6e46f766f4e2eb64d2d467ef7efff084c47c (diff)
kconfig: minor style fixes in symbol-search code
Two minor style fixes: - no space before/after parenthesis in function definition - no {} for single-line if() And one grammar fix in a comment. Reported-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Jean Delvare <jdelvare@suse.de> Reviewed-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'scripts')
-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;