pci_rom: fix may be used uninitialized warning
[oweals/u-boot.git] / drivers / pci / pci_rom.c
index d5bf6f4c471646018663c84cf8f7ed7f31751214..9eb605be74297794e3411af0d436a603d5f31bad 100644 (file)
@@ -266,7 +266,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void),
                        int exec_method)
 {
        struct pci_child_platdata *pplat = dev_get_parent_platdata(dev);
-       struct pci_rom_header *rom, *ram = NULL;
+       struct pci_rom_header *rom = NULL, *ram = NULL;
        int vesa_mode = -1;
        bool emulate, alloced;
        int ret;