summaryrefslogtreecommitdiff
path: root/samples/nitro_enclaves
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2024-04-09 21:59:40 +0300
committerRob Herring <robh@kernel.org>2024-04-15 16:40:40 +0300
commit40b0f17453fca50165c9d56401be663448e9136c (patch)
treec3ba7211c1177690af02673aeffdee10f66dca9e /samples/nitro_enclaves
parent1c5e3d9bf33b811e1c6dd9081b322004acc4a1fd (diff)
downloadlinux-40b0f17453fca50165c9d56401be663448e9136c.tar.xz
of: Use scope based kfree() cleanups
Use the relatively new scope based kfree() cleanup to simplify error handling. Doing so reduces the chances of memory leaks and simplifies error paths by avoiding the need for goto statements. Reviewed-by: Saravana Kannan <saravanak@google.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240409-dt-cleanup-free-v2-2-5b419a4af38d@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'samples/nitro_enclaves')
0 files changed, 0 insertions, 0 deletions