Re: [U-Boot] [PATCH] pci: Fix compiler warnings in dm_pciauto_setup_device()

2016-02-26 Thread Simon Glass
On 19 February 2016 at 13:55, Simon Glass wrote: > On 18 February 2016 at 00:14, Bin Meng wrote: >> 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_a

Re: [U-Boot] [PATCH] pci: Fix compiler warnings in dm_pciauto_setup_device()

2016-02-19 Thread Simon Glass
On 18 February 2016 at 00:14, Bin Meng wrote: > 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, > ^ >