mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[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
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue