mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
pci: Fix compiler warnings in dm_pciauto_setup_device()
Fix the following compiler warnings when DEBUG is on. warning: 'bar_res' may be used uninitialized in this function. drivers/pci/pci_auto.c:101:21: if (!enum_only && pciauto_region_allocate(bar_res, bar_size, ^ Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f8025b58f8
commit
6796704b0d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void dm_pciauto_setup_device(struct udevice *dev, int bars_num,
|
||||||
u8 header_type;
|
u8 header_type;
|
||||||
int rom_addr;
|
int rom_addr;
|
||||||
pci_addr_t bar_value;
|
pci_addr_t bar_value;
|
||||||
struct pci_region *bar_res;
|
struct pci_region *bar_res = NULL;
|
||||||
int found_mem64 = 0;
|
int found_mem64 = 0;
|
||||||
u16 class;
|
u16 class;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue