This patch fixes serial console detection failure caused by the
changeset
cfbc535ebf6f.
The changeset changed struct efi's members value from xen virtual
address to physical address and from NULL to EFI_INVALID_TABLE_ADDR
for non existing table. One check was missed.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
int i;
/* Don't duplicate setup if an HCDP table is present */
- if (efi.hcdp)
+ if (efi.hcdp != EFI_INVALID_TABLE_ADDR)
return -ENODEV;
/* Manually walk firmware provided tables to get to the XSDT. */