summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2017-05-17 10:36:49 +0200
committerRichard Weinberger <richard@nod.at>2017-07-14 22:49:07 +0200
commitd2eb85226fcd981767d1829b09ae1070cf695b98 (patch)
treeaab257b6846b77573ad6455731773eb40cec0596
parent35ee314c84cd4b3e3689292f82c0af2af246c343 (diff)
downloadlwn-d2eb85226fcd981767d1829b09ae1070cf695b98.tar.gz
lwn-d2eb85226fcd981767d1829b09ae1070cf695b98.zip
ubifs: Remove dead code from ubifs_get_link()
We check the length already, no need to check later again for an empty string. Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--fs/ubifs/file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index c1d352842ee2..c58efc1470f3 100644
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@ -1697,12 +1697,6 @@ static const char *ubifs_get_link(struct dentry *dentry,
pstr.name[pstr.len] = '\0';
- // XXX this probably won't happen anymore...
- if (pstr.name[0] == '\0') {
- fscrypt_fname_free_buffer(&pstr);
- return ERR_PTR(-ENOENT);
- }
-
set_delayed_call(done, kfree_link, pstr.name);
return pstr.name;
}