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

Commit 07acaf28 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

[PATCH] Remove NULL check in register_nls()



Everybody passes valid pointer there.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 609d7fa9
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -163,8 +163,6 @@ int register_nls(struct nls_table * nls)
{
{
	struct nls_table ** tmp = &tables;
	struct nls_table ** tmp = &tables;


	if (!nls)
		return -EINVAL;
	if (nls->next)
	if (nls->next)
		return -EBUSY;
		return -EBUSY;