xen/arm: efi: Avoid duplicating the addition of a new efi memory descriptor
authorJulien Grall <julien.grall@arm.com>
Wed, 8 Mar 2017 17:54:34 +0000 (17:54 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 8 Mar 2017 18:24:01 +0000 (10:24 -0800)
commitd229f7de70610a1983842e7a113db26c053bc592
tree85c712ab7d8168b3b27118b4f1ca8f79c3fae4e2
parent2c277ddb77ba054bb8c4c882d98618556d334f12
xen/arm: efi: Avoid duplicating the addition of a new efi memory descriptor

The code to add a new memory descriptor is duplicated three times. Add a
new helper that adds the descriptor.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/efi/efi-dom0.c