mtd: rawnand: nandsim: Free the partition names in ns_free()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:44 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:38 +0000 (10:53 +0200)
commit72e840a15c66e89583f5bf35a8d890f6c77bb2db
tree200c96f1e90de27dd695adc1111a56e22654b8c5
parent161246ec066f3eee40feeb02a07992db4c4e86f7
mtd: rawnand: nandsim: Free the partition names in ns_free()

ns_free() is the helper that is called symmetrically to ns_init() and
so should free the same objects, including the partition names.

Now, callers of ns_free() do not need to free this partition names
themselves.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-11-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c