]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Simplify boot_target variable composition
authorMichal Simek <michal.simek@xilinx.com>
Wed, 25 Apr 2018 09:10:34 +0000 (11:10 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 11 May 2018 07:23:43 +0000 (09:23 +0200)
commit0478b0b9b674da35948d7500b595ae14387068ac
treea483ba9eacf7297ab562ae47eeab0d860ed06e87
parent0678941ae54b3f1bbd8024c8d74fb282f0c1b590
arm64: zynqmp: Simplify boot_target variable composition

Call calloc for space allocation only at one location and include if/else
to sprintf. This will simplify run time device adding based on id aliases.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
board/xilinx/zynqmp/zynqmp.c