1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00
Files
u-boot-megous/tools
Heinrich Schuchardt 69cd0c463d tools: value checks in rkcommon_check_params()
Building with -Wtype-limits yields

tools/rkcommon.c: In function ‘rkcommon_check_params’:
tools/rkcommon.c:158:27: warning: comparison of
unsigned expression < 0 is always false [-Wtype-limits]
  158 |  if (spl_params.init_size < 0)
      |                           ^
tools/rkcommon.c:165:28: warning: comparison of
unsigned expression < 0 is always false [-Wtype-limits]
  165 |   if (spl_params.boot_size < 0)
      |

Fix the value checks.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2020-05-22 20:53:20 +08:00
..
2020-04-26 14:25:21 -06:00
2020-04-26 14:25:21 -06:00
2020-04-26 14:25:21 -06:00
2019-10-08 16:35:59 +02:00
2020-04-26 14:25:21 -06:00
2019-12-06 16:44:20 -05:00
2019-07-29 00:20:31 +02:00
2020-04-26 14:25:21 -06:00
2019-11-04 18:15:32 -07:00
2020-04-26 14:25:21 -06:00