Commit 07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65

Authored by Alexey Dobriyan
Committed by Linus Torvalds
1 parent 609d7fa956

[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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -163,8 +163,6 @@
163 163 {
164 164 struct nls_table ** tmp = &tables;
165 165  
166   - if (!nls)
167   - return -EINVAL;
168 166 if (nls->next)
169 167 return -EBUSY;
170 168