Skip to content

Commit a7b00a1

Browse files
committed
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 <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
1 parent bea5b74 commit a7b00a1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/kallsyms.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ static bool is_ignored_symbol(const char *name, char type)
178178
return true;
179179
}
180180

181-
if (type == 'U' || type == 'u')
182-
return true;
183-
/* exclude debugging symbols */
184-
if (type == 'N' || type == 'n')
181+
if (type == 'u' || type == 'n')
185182
return true;
186183

187184
if (toupper(type) == 'A') {

0 commit comments

Comments
 (0)