Skip to content
Commit 9aa6543e authored by Dinghao Liu's avatar Dinghao Liu Committed by Ira Weiny
Browse files

nvdimm-btt: simplify code with the scope based resource management



Use the scope based resource management (defined in
linux/cleanup.h) to automate resource lifetime
control on struct btt_sb *super in discover_arenas().

Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20231214083919.22218-1-dinghao.liu@zju.edu.cn


Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
parent deb369e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment