[PATCH] mtd: ubi: Remove test that always fails
    Heiko Schocher 
    hs at nabladev.com
       
    Thu Oct  9 06:10:20 CEST 2025
    
    
  
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 <andrew.goodbody at linaro.org>
> ---
>   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: office at nabladev.com
Geschäftsführer : Stefano Babic
    
    
More information about the U-Boot
mailing list