mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-30 11:20:16 +00:00
trivial: Fix pointless header check
It can never be NULL. Found using Coverity.
This commit is contained in:
parent
710bf295b2
commit
8072bb6fb7
@ -356,8 +356,7 @@ fu_rom_pci_parse_data (FuRomPciHeader *hdr)
|
|||||||
guint8 *buffer;
|
guint8 *buffer;
|
||||||
|
|
||||||
/* check valid */
|
/* check valid */
|
||||||
if (hdr == NULL ||
|
if (hdr->cpi_ptr == 0x0000) {
|
||||||
hdr->cpi_ptr == 0x0000) {
|
|
||||||
g_debug ("No PCI DATA @ 0x%04x", hdr->rom_offset);
|
g_debug ("No PCI DATA @ 0x%04x", hdr->rom_offset);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user