Skip to content

Commit

Permalink
mtd: rawnand: denali_pci: rename goto labels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Miquel Raynal committed Apr 18, 2019
1 parent f4f16fd commit 13defd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/mtd/nand/raw/denali_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 13defd4

Please sign in to comment.