]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scripts/kallsyms: make find_token() return (unsigned char *)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 16:04:37 +0000 (01:04 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 Nov 2019 12:04:11 +0000 (21:04 +0900)
The callers of this function expect (unsigned char *). I do not see
a good reason to make this function return (void *).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c

index 89cc7c098c5187326f17d639ea10183d8c0f3da0..274a77bfbd631f51fce8f89377d9e97fe2317719 100644 (file)
@@ -503,7 +503,8 @@ static void build_initial_tok_table(void)
                learn_symbol(table[i].sym, table[i].len);
 }
 
-static void *find_token(unsigned char *str, int len, unsigned char *token)
+static unsigned char *find_token(unsigned char *str, int len,
+                                unsigned char *token)
 {
        int i;