mtd: ubi: Remove test that always fails
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 1 Aug 2025 11:49:48 +0000 (12:49 +0100)
committerHeiko Schocher <hs@nabladev.com>
Wed, 8 Oct 2025 09:34:12 +0000 (11:34 +0200)
commit75b7ef1caf19d467ee8a7e69eb5eccb6a45e1715
treecb4a23ba53b44d2e084480e0aadb7bcb2ba1fb48
parent92dcb3ad5d98f494b2448a7345e1cb7eefa50278
mtd: ubi: Remove test that always fails

When checking the VID header of a static volume there is an early test
for data_size == 0 so testing for that condition again is guaranteed to
fail. Just remove this piece of code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/mtd/ubi/io.c