From: Masahiro Yamada Date: Wed, 8 Mar 2023 11:52:36 +0000 (+0900) Subject: scripts/kallsyms: remove redundant code for omitting U and N X-Git-Tag: v6.4-rc1~70^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7b00a1811c9e562b44f0b283de7f01443123390;p=thirdparty%2Flinux.git scripts/kallsyms: remove redundant code for omitting U and N The symbol types 'U' and 'N' are already filtered out by the following line in scripts/mksysmap: -e ' [aNUw] ' Signed-off-by: Masahiro Yamada Reviewed-by: Nick Desaulniers --- diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index ea1e3d3aaa6b1..8148e880f78e8 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -178,10 +178,7 @@ static bool is_ignored_symbol(const char *name, char type) return true; } - if (type == 'U' || type == 'u') - return true; - /* exclude debugging symbols */ - if (type == 'N' || type == 'n') + if (type == 'u' || type == 'n') return true; if (toupper(type) == 'A') {