]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx: common: Change board_info[] handling
authorMichal Simek <michal.simek@xilinx.com>
Thu, 12 Aug 2021 10:30:36 +0000 (12:30 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 26 Aug 2021 06:14:43 +0000 (08:14 +0200)
commitd9c93c9e2c53e5b624e79b9ba244f84b5c73544b
tree6507255f0a054eb767d5f4efc92d75433883ccf9
parent57f710320fcd18bb5deaa9654dbce4da4de9d987
xilinx: common: Change board_info[] handling

Origin code was allocating only pointers to struct xilinx_board_description
and there was separate allocation for structure self and freeing in case of
failure.
The code is directly allocating space for all structures by one calloc to
simlify logic.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c