mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 03:07:23 +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;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user