diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-07 14:36:23 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-10-23 13:48:06 +0200 |
commit | c4de6d7e4319ffb52d6db3138057712749540191 (patch) | |
tree | 24ece70ae4e0bd90695783a09e36a57017091fd1 /drivers/hwmon/jc42.c | |
parent | ubi: Mark expected switch fall-throughs (diff) | |
download | linux-c4de6d7e4319ffb52d6db3138057712749540191.tar.xz linux-c4de6d7e4319ffb52d6db3138057712749540191.zip |
ubifs: Refactor create_default_filesystem()
create_default_filesystem() allocates memory for a node, writes that
node and frees the memory directly afterwards. With this patch we
allocate memory for all nodes at the beginning of the function and
free the memory at the end. This makes it easier to implement
authentication support since with authentication support we'll need
the contents of some nodes when creating other nodes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/hwmon/jc42.c')
0 files changed, 0 insertions, 0 deletions