提交 07acaf28 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

[PATCH] Remove NULL check in register_nls()

Everybody passes valid pointer there.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 609d7fa9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册