> From: Ye Li <[email protected]> > Fix below coverity issues caused by get_idx function where "-1" is > compared with uint8_t "element" > 343336 Unsigned compared with neg > 343337 Operands don't affect result > Additional, this function returns "-1" will cause overflow to > event string array. > Reviewed-by: Peng Fan <[email protected]> > Signed-off-by: Ye Li <[email protected]> > Signed-off-by: Peng Fan <[email protected]> Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================

