summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-25 10:58:50 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-31 10:53:40 +0200
commitf82d82e202fce7d461c2a6bdb55feaf28448a075 (patch)
tree5da5bde5dc593bec78b84406ff41c87501e074c6 /drivers/mtd
parent73f2b68c51f4f6c3dbe621d263d6fd32526f2faf (diff)
mtd: rawnand: nandsim: Rename a label in ns_init_module()
Rename the "error" label to gave it a meaning. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-17-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/nandsim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c
index 4492b9a9962e..7076acfbe0f4 100644
--- a/drivers/mtd/nand/raw/nandsim.c
+++ b/drivers/mtd/nand/raw/nandsim.c
@@ -2310,7 +2310,7 @@ static int __init ns_init_module(void)
default:
NS_ERR("bbt has to be 0..2\n");
ret = -EINVAL;
- goto error;
+ goto free_ns_struct;
}
/*
* Perform minimum nandsim structure initialization to handle
@@ -2337,7 +2337,7 @@ static int __init ns_init_module(void)
ret = ns_parse_weakblocks();
if (ret)
- goto error;
+ goto free_ns_struct;
ret = ns_parse_weakpages();
if (ret)
@@ -2428,7 +2428,7 @@ free_wb_list:
list_del(pos);
kfree(list_entry(pos, struct weak_block, list));
}
-error:
+free_ns_struct:
kfree(ns);
return ret;