]> git.ipfire.org Git - thirdparty/linux.git/commit
fs/ntfs3: Drop redundant NULL check
authorAndrey Vatoropin <a.vatoropin@crpt.ru>
Mon, 3 Mar 2025 09:13:56 +0000 (09:13 +0000)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 28 Apr 2025 09:17:08 +0000 (12:17 +0300)
commit4665a0da497b1bd42569e5bc6da4cd9ce82f9c25
tree85a405cf6ebfc46a83095611c8b92f6a374d5718
parent0af2f6be1b4281385b618cb86ad946eded089ac8
fs/ntfs3: Drop redundant NULL check

Static analysis shows that pointer "mi" cannot be NULL, since it is
pre-initialized above. A potential failure when mi equals NULL is
processed.

Remove the extra NULL check. It is meaningless and harms the readability
of the code, since before that the pointer is unconditionally
dereferenced.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fslog.c