fs: ext4fs: Do not negate error before returning it
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 4 Jul 2025 12:32:42 +0000 (13:32 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 11 Jul 2025 16:44:29 +0000 (10:44 -0600)
commita7e44898b4d2484a9fd3226f44bc9b51d174f1e3
tree124a4848afe95d40f94837a9900bd81f73c43944
parent7027b445cc0bfb86204ecb1f1fe596f5895048d9
fs: ext4fs: Do not negate error before returning it

In ext4fs_readdir it calls ext4fs_read_file and checks the return value
for non-zero to detect an error. This return value should be returned as
is rather than being negated.

This issue found by Smatch

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
fs/ext4/ext4fs.c