]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite26b7e436c79c41c9abd9290ce707682830d6f0b
tree06670dcce984b067ab28f08f45c2a5b36e4887b6
parentbae696863a828aab7cebf3ec3af1c5d995e62ca6
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