Skip to content

Commit

Permalink
[PATCH] Remove NULL check in register_nls()
Browse files Browse the repository at this point in the history
Everybody passes valid pointer there.

Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Oct 2, 2006
1 parent 609d7fa commit 07acaf2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/nls/nls_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 07acaf2

Please sign in to comment.