Skip to content

Commit 04311b9

Browse files
seehearfeelmcgrof
authored andcommitted
module: Make is_valid_name() return bool
The return value of is_valid_name() is true or false, so change its type to reflect that. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent 60da364 commit 04311b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/mod/modpost.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,12 @@ static int secref_whitelist(const char *fromsec, const char *fromsym,
10591059
* only by merging __exit and __init sections into __text, bloating
10601060
* the kernel (which is especially evil on embedded platforms).
10611061
*/
1062-
static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym)
1062+
static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym)
10631063
{
10641064
const char *name = elf->strtab + sym->st_name;
10651065

10661066
if (!name || !strlen(name))
1067-
return 0;
1067+
return false;
10681068
return !is_mapping_symbol(name);
10691069
}
10701070

0 commit comments

Comments
 (0)