From: Alexey Dobriyan Date: Mon, 2 Oct 2006 09:17:16 +0000 (-0700) Subject: [PATCH] Remove NULL check in register_nls() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 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;