diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2021-01-20 20:23:04 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-02-10 10:43:49 +1100 |
commit | 7265bc3e5429a630a8de2459d510d5d66a072af9 (patch) | |
tree | 865235e0c6b9f406020ccd93cb22587ba16f1dfb /module-common.c | |
parent | 1214d55d1c41fbab3a9973a05085b8760647e411 (diff) |
spapr.c: use g_auto* with 'nodename' in CPU DT functions
Next patch will use the 'nodename' string in spapr_core_dt_populate()
after the point it's being freed today.
Instead of moving 'g_free(nodename)' around, let's do a QoL change in
both CPU DT functions where 'nodename' is being freed, and use
g_autofree to avoid the 'g_free()' call altogether.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210120232305.241521-2-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions