trivial: Fix pointless header check

It can never be NULL. Found using Coverity.
This commit is contained in:
Richard Hughes 2016-11-09 19:33:47 +00:00
parent 710bf295b2
commit 8072bb6fb7

View File

@ -356,8 +356,7 @@ fu_rom_pci_parse_data (FuRomPciHeader *hdr)
guint8 *buffer;
/* check valid */
if (hdr == NULL ||
hdr->cpi_ptr == 0x0000) {
if (hdr->cpi_ptr == 0x0000) {
g_debug ("No PCI DATA @ 0x%04x", hdr->rom_offset);
return FALSE;
}