Commit 13defd47 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Miquel Raynal

mtd: rawnand: denali_pci: rename goto labels

As Documentation/process/coding-style.rst says, choose label names
which say what the goto does. The out_<action> label style is already
used in denali_dt.c. Rename likewise for denali_pci.c
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent f4f16fd3
...@@ -84,20 +84,20 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -84,20 +84,20 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
if (!denali->host) { if (!denali->host) {
dev_err(&dev->dev, "Spectra: ioremap_nocache failed!"); dev_err(&dev->dev, "Spectra: ioremap_nocache failed!");
ret = -ENOMEM; ret = -ENOMEM;
goto failed_remap_reg; goto out_unmap_reg;
} }
ret = denali_init(denali); ret = denali_init(denali);
if (ret) if (ret)
goto failed_remap_mem; goto out_unmap_host;
pci_set_drvdata(dev, denali); pci_set_drvdata(dev, denali);
return 0; return 0;
failed_remap_mem: out_unmap_host:
iounmap(denali->host); iounmap(denali->host);
failed_remap_reg: out_unmap_reg:
iounmap(denali->reg); iounmap(denali->reg);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment