Skip to content

Commit 07acaf2

Browse files
Alexey DobriyanLinus Torvalds
authored andcommitted
[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>
1 parent 609d7fa commit 07acaf2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/nls/nls_base.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ int register_nls(struct nls_table * nls)
163163
{
164164
struct nls_table ** tmp = &tables;
165165

166-
if (!nls)
167-
return -EINVAL;
168166
if (nls->next)
169167
return -EBUSY;
170168

0 commit comments

Comments
 (0)