Unverified Commit d2846bf3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Konstantin Komarov
Browse files

fs/ntfs3: Remove a useless test in 'indx_find()'



'fnd' has been dereferenced several time before, so testing it here is
pointless.
Moreover, all callers of 'indx_find()' already have some error handling
code that makes sure that no NULL 'fnd' is passed.

So, remove the useless test.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarKari Argillander <kari.argillander@gmail.com>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent 63544672
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1072,9 +1072,7 @@ int indx_find(struct ntfs_index *indx, struct ntfs_inode *ni,
	if (!e)
		return -EINVAL;

	if (fnd)
	fnd->root_de = e;

	err = 0;

	for (;;) {