[PATCH] Remove NULL check in register_nls()

From: Alexey Dobriyan
Date: Tue Aug 15 2006 - 14:42:41 EST


Everybody passes valid pointer there.

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

fs/nls/nls_base.c | 2 --
1 file changed, 2 deletions(-)

--- 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;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/