From: Alexey Dobriyan Date: Mon, 2 Oct 2006 09:17:16 +0000 (-0700) Subject: [PATCH] Remove NULL check in register_nls() X-Git-Tag: v2.6.19-rc1~473 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65;p=linux-2.6 [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 --- diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index 9de6b495f1..b1317ad5ca 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;