Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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,