]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Remove NULL check in register_nls()
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 2 Oct 2006 09:17:16 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:14 +0000 (07:57 -0700)
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>
fs/nls/nls_base.c

index 9de6b495f1128c09dd7c7d87767473e0431122cd..b1317ad5ca1851f0ba4954d7bb47bba1bd239213 100644 (file)
@@ -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;