projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ee314
)
ubifs: Remove dead code from ubifs_get_link()
author
Richard Weinberger
<richard@nod.at>
Wed, 17 May 2017 08:36:49 +0000
(10:36 +0200)
committer
Richard Weinberger
<richard@nod.at>
Fri, 14 Jul 2017 20:49:07 +0000
(22:49 +0200)
We check the length already, no need to check later
again for an empty string.
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/file.c
b/fs/ubifs/file.c
index c1d352842ee2eccd74de30a3c91d81e8c106ce5b..c58efc1470f3fadb7ffa3fbf3caadb2b3bf02769 100644
(file)
--- 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;
}