]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: i2c: fix coverity issue
authorHeiko Schocher <hs@denx.de>
Mon, 4 Aug 2025 09:43:29 +0000 (11:43 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 6 Aug 2025 05:49:13 +0000 (07:49 +0200)
commitb1463957d1138955c8b63a76aaa6abbaf5b5aa81
tree4fcb12c91fdf6d5f7c403c37cf709f2246c7db45
parentb68875656c3bad36c4d5b9f44b7689e3e1864e09
cmd: i2c: fix coverity issue

coverity scan reported issue:
** CID 583415:       Integer handling issues  (INTEGER_OVERFLOW)
/cmd/i2c.c: 369           in do_i2c_write()

change the length variable into type int.

Signed-off-by: Heiko Schocher <hs@denx.de>
cmd/i2c.c