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

Simon Glass sjg at chromium.org
Fri Feb 19 21:55:22 CET 2016


On 18 February 2016 at 00:14, Bin Meng <bmeng.cn at gmail.com> 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,
>                         ^
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/pci/pci_auto.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list