efi: Tidy up device-tree-size calculation in copy_fdt()
authorSimon Glass <sjg@chromium.org>
Mon, 18 Jun 2018 14:08:25 +0000 (08:08 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jul 2018 12:57:44 +0000 (14:57 +0200)
commitbc9a638a1031a171f0b2dfa4438aa3903fa589ae
tree06344beefcc7b7e5843923738fc4add3d8435c76
parent404ea59364f1355afcd845a7405599fdc2303231
efi: Tidy up device-tree-size calculation in copy_fdt()

This is a bit confusing at present since it adds 4KB to the pointer, then
rounds it up. It looks like a bug, but is not.

Move the 4KB addition into a separate statement and expand the comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c