[PATCH v3 09/19] bootmeth_efi: Simplify reading files by using the common function