projects/linux·commit 07acaf28

[PATCH] Remove NULL check in register_nls()

07acaf28 · Alexey Dobriyan <[email protected]> · 2006-10-02 02:17:16 -07:00

Everybody passes valid pointer there.

Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
07acaf28d21e710bcf1cec91c0cfdb1a7b5e3d65
Parents
609d7fa9

Changes

1 files changed · +0 −2

FileStatusAddDelContent
fs/nls/nls_base.cmodified+0−2View file

fs/nls/nls_base.c

View file
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index 9de6b49..b1317ad 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;