[PATCH 26/34] efi: Simplify reading files by using the common function