mtd: rawnand: denali_pci: rename goto labels
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Apr 2019 04:03:06 +0000 (13:03 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Apr 2019 06:54:03 +0000 (08:54 +0200)
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: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/denali_pci.c

index 48e9ac54ad531a884fe5d24519fbadfbb0ff2547..02eb5990a91e0300403ab564aa093ba7cdcf4b42 100644 (file)
@@ -84,20 +84,20 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
        if (!denali->host) {
                dev_err(&dev->dev, "Spectra: ioremap_nocache failed!");
                ret = -ENOMEM;
-               goto failed_remap_reg;
+               goto out_unmap_reg;
        }
 
        ret = denali_init(denali);
        if (ret)
-               goto failed_remap_mem;
+               goto out_unmap_host;
 
        pci_set_drvdata(dev, denali);
 
        return 0;
 
-failed_remap_mem:
+out_unmap_host:
        iounmap(denali->host);
-failed_remap_reg:
+out_unmap_reg:
        iounmap(denali->reg);
        return ret;
 }