[PATCH] Remove NULL check in register_nls()
Changes
1 files changed · +0 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/nls/nls_base.c | modified | +0 | −2 | View file |
fs/nls/nls_base.c
View filediff --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;