efi: Move arch_tables check to caller
authorArd Biesheuvel <ardb@kernel.org>
Thu, 26 Mar 2020 08:34:35 +0000 (09:34 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Apr 2020 12:52:16 +0000 (14:52 +0200)
commit4eb8320bd1aaa7e69d039f2c251735e3ef0b9a38
treeaa84823fc1d4edfb4a9bbbe8bb6c2c9ea07939aa
parent4e9a0f73f030e19a9259b69a7079021048e1f904
efi: Move arch_tables check to caller

Instead of making match_config_table() test its table_types pointer for
NULL-ness, omit the call entirely if no arch_tables pointer was provided
to efi_config_parse_tables().

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c