Skip to content

Commit f82d82e

Browse files
committed
mtd: rawnand: nandsim: Rename a label in ns_init_module()
Rename the "error" label to gave it a meaning. Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 73f2b68 commit f82d82e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/raw/nandsim.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ static int __init ns_init_module(void)
23102310
default:
23112311
NS_ERR("bbt has to be 0..2\n");
23122312
ret = -EINVAL;
2313-
goto error;
2313+
goto free_ns_struct;
23142314
}
23152315
/*
23162316
* Perform minimum nandsim structure initialization to handle
@@ -2337,7 +2337,7 @@ static int __init ns_init_module(void)
23372337

23382338
ret = ns_parse_weakblocks();
23392339
if (ret)
2340-
goto error;
2340+
goto free_ns_struct;
23412341

23422342
ret = ns_parse_weakpages();
23432343
if (ret)
@@ -2428,7 +2428,7 @@ static int __init ns_init_module(void)
24282428
list_del(pos);
24292429
kfree(list_entry(pos, struct weak_block, list));
24302430
}
2431-
error:
2431+
free_ns_struct:
24322432
kfree(ns);
24332433

24342434
return ret;

0 commit comments

Comments
 (0)