Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 803b3519 authored by Yann E. MORIN's avatar Yann E. MORIN
Browse files

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: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Jean Delvare <jdelvare@suse.de>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
parent f6eb6e46
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1014,9 +1014,8 @@ struct symbol **sym_re_search(const char *pattern)
			void *tmp;
			size += 16;
			tmp = realloc(sym_match_arr, size * sizeof(struct sym_match *));
			if (!tmp) {
			if (!tmp)
				goto sym_re_search_free;
			}
			sym_match_arr = tmp;
		}
		sym_calc_value(sym);
@@ -1024,7 +1023,7 @@ struct symbol **sym_re_search(const char *pattern)
		if (!tmp_sym_match)
			goto sym_re_search_free;
		tmp_sym_match->sym = sym;
		/* As regexec return 0, we know we have a match, so
		/* As regexec returned 0, we know we have a match, so
		 * we can use match[0].rm_[se]o without further checks
		 */
		tmp_sym_match->so = match[0].rm_so;