Dave Jiang wrote: > Converting nvdimm_bus_lock/unlock to guard() to clean up usage > of gotos for error handling and avoid future mistakes of missed > unlock on error paths. > > Link: https://lore.kernel.org/linux-cxl/20250917163623.00004...@huawei.com/ > Suggested-by: Jonathan Cameron <jonathan.came...@huawei.com> > Signed-off-by: Dave Jiang <dave.ji...@intel.com> > --- > v2: > - Moved cleanup of __nd_ioctl() cleanup to a different patch. (Dan) > - Various minor fixes and cleanups. (Jonathan)
While I am not a fan of the indentation damage that scoped_guard() conversions inflict, in this case there is other cruft that gets in the way of wider cleanups. Acked-by: Dan Williams <dan.j.willi...@intel.com>