Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2eb8522 authored by Richard Weinberger's avatar Richard Weinberger
Browse files

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: default avatarRichard Weinberger <richard@nod.at>
parent 35ee314c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;
}