1
0
Fork 0

MLK-23901 PCI: imx: Initialize the variable value to fix build warning

Initialize the variable value to fix build warning.

CC      drivers/pci/controller/dwc/pci-imx6.o
drivers/pci/controller/dwc/pci-imx6.c: In function ‘imx6_pcie_probe’:
drivers/pci/controller/dwc/pci-imx6.c:2676:5: warning: ‘ret’ may be
used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Richard Zhu 2020-05-06 12:24:35 +08:00
parent 00ca1506e9
commit f51e2308f2
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ static void imx6_pcie_detach_pd(struct device *dev)
static int imx6_pcie_attach_pd(struct device *dev)
{
int ret;
int ret = 0;
struct imx6_pcie *imx6_pcie = dev_get_drvdata(dev);
struct device_link *link;