]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx: common: Fix static checker warnings
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Mon, 26 Sep 2022 06:52:42 +0000 (12:22 +0530)
committerMichal Simek <michal.simek@amd.com>
Wed, 5 Oct 2022 09:36:54 +0000 (11:36 +0200)
commite1a193b95177fb5325c07fa85810f640a8ed8687
tree45adfd80fbdafb8fafaa612d6d9e19203d0a7c3b
parentf4cf004d273523494bb276c3317c0c8f17a48c59
xilinx: common: Fix static checker warnings

Avoid signed extension for uuid and byte.

Eliminate the below smatch warnings:
board/xilinx/common/board.c:128 xilinx_eeprom_legacy_cleanup()
warn: impossible condition '(byte == 255) => ((-128)-127 == 255)'

board/xilinx/common/board.c:466 board_late_init_xilinx()
warn: argument 3 to %02x specifier has type 'char'
board/xilinx/common/board.c:466 board_late_init_xilinx()
warn: argument 4 to %02x specifier has type 'char'

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20220926065242.4355-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/common/board.c