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 11:17:14 +0000 (13:17 +0200)
commitcb28469d030ad4d9c662edd0fc8b923f05ef108a
tree0bfaade5a1b8f4a719a07cf984b887e84506500b
parent3b0a2bd51f60418ecd67493586a2bb2174199de3
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