mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
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>
This commit is contained in:
parent
35ee314c84
commit
d2eb85226f
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue