From 07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Mon, 2 Oct 2006 02:17:16 -0700 Subject: [PATCH] [PATCH] Remove NULL check in register_nls() Everybody passes valid pointer there. Signed-off-by: Alexey Dobriyan Acked-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/nls/nls_base.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index 9de6b495f11..b1317ad5ca1 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; -- 2.41.1