[PATCH] test: cmd: part: fix integer handling in setup_gpt_partitions()
Quentin Schulz
quentin.schulz at cherry.de
Fri Jun 26 20:40:36 CEST 2026
Hi Dario,
On 6/26/26 8:33 PM, Dario Binacchi wrote:
> Coverity reports an INTEGER_OVERFLOW issue because ut_asserteq() compares
> an unsigned int (mmc_dev_num) with ret, which can hold a negative error
> code.
>
The trick here is that ut_asserteq() takes two arguments and casts both
as unsigned int, hence why it complains.
If Coverity is happy, I'm happy :)
This looks fine to me, so:
Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>
Thanks!
Quentin
More information about the U-Boot
mailing list