Commit b605be65 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Jessica Yu

module: remove unneeded casts in cmp_name()

You can pass opaque pointers directly.

I also renamed 'va' and 'vb' into more meaningful arguments.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent efd9763d
......@@ -555,12 +555,9 @@ static const char *kernel_symbol_namespace(const struct kernel_symbol *sym)
#endif
}
static int cmp_name(const void *va, const void *vb)
static int cmp_name(const void *name, const void *sym)
{
const char *a;
const struct kernel_symbol *b;
a = va; b = vb;
return strcmp(a, kernel_symbol_name(b));
return strcmp(name, kernel_symbol_name(sym));
}
static bool find_exported_symbol_in_section(const struct symsearch *syms,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment