mirror of https://gitee.com/openkylin/linux.git
[PATCH] Remove NULL check in register_nls()
Everybody passes valid pointer there. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
609d7fa956
commit
07acaf28d2
|
@ -163,8 +163,6 @@ int register_nls(struct nls_table * nls)
|
|||
{
|
||||
struct nls_table ** tmp = &tables;
|
||||
|
||||
if (!nls)
|
||||
return -EINVAL;
|
||||
if (nls->next)
|
||||
return -EBUSY;
|
||||
|
||||
|
|
Loading…
Reference in New Issue