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
parent
00ca1506e9
commit
f51e2308f2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue