summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-10-02 02:17:16 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 07:57:14 -0700
commit07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65 (patch)
tree4c3d332089cd67a1f9595c19c6576179726a4621 /fs
parent609d7fa9565c754428d2520cac2accc9052e1245 (diff)
downloadlinux-stable-07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65.tar.gz
linux-stable-07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65.tar.bz2
linux-stable-07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65.zip
[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>
Diffstat (limited to 'fs')
-rw-r--r--fs/nls/nls_base.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index 9de6b495f112..b1317ad5ca18 100644
--- a/fs/nls/nls_base.c
+++ b/fs/nls/nls_base.c
@@ -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;