efi: libstub: drop pointless get_memory_map() call
authorArd Biesheuvel <ardb@kernel.org>
Thu, 15 Sep 2022 17:00:24 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:32 +0000 (12:34 +0200)
commitb19254eadab3270de20a4fd3125a7052c4a23110
treef5415c2833c23939cf491d2bee909d1291a61587
parent5cda4a11b4906ddd037b216845e7f9c96ac93772
efi: libstub: drop pointless get_memory_map() call

commit d80ca810f096ff66f451e7a3ed2f0cd9ef1ff519 upstream.

Currently, the non-x86 stub code calls get_memory_map() redundantly,
given that the data it returns is never used anywhere. So drop the call.

Cc: <stable@vger.kernel.org> # v4.14+
Fixes: 24d7c494ce46 ("efi/arm-stub: Round up FDT allocation to mapping size")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/fdt.c