Hello Andrew,

On 01.08.25 13:49, Andrew Goodbody wrote:
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 <[email protected]>
---
  drivers/mtd/ubi/io.c | 7 +------
  1 file changed, 1 insertion(+), 6 deletions(-)

Applied to u-boot-ubi

Thanks!

bye,
Heiko
--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic

Reply via email to