OSDN Git Service

fs/ntfs3: Remove a useless test in 'indx_find()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 18 Sep 2021 19:56:19 +0000 (21:56 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 23 Sep 2021 16:05:25 +0000 (19:05 +0300)
commitd2846bf33c1423ff872c7a7c2afde292ad502c04
tree06670dcce984b067ab28f08f45c2a5b36e4887b6
parent6354467245ff8dd04b54e39790f2ee4d21d5419e
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/index.c