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
此提交包含在:
Miquel Raynal
2020-05-25 10:58:50 +02:00
父節點 73f2b68c51
當前提交 f82d82e202

查看文件

@@ -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;