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

[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
...@@ -163,8 +163,6 @@ int register_nls(struct nls_table * nls) ...@@ -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;
......
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