bootvx: Refactor the bootline copy codes a little bit
authorBin Meng <bmeng.cn@gmail.com>
Thu, 12 Apr 2018 05:02:20 +0000 (22:02 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 16 Apr 2018 14:38:52 +0000 (22:38 +0800)
commit7824ad6ad494c4489fdd997212b5566638fc840b
tree8d90c8016c198a83022aa96186df3826d9408923
parent447ae4f7adb2c667eec1e0861e2346694c57a2e0
bootvx: Refactor the bootline copy codes a little bit

There is a small duplication in do_bootvx() that does the bootline
copy. Refactor this a little bit to make it simpler.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/elf.c