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/[email protected]/
> Suggested-by: Jonathan Cameron <[email protected]>
> Signed-off-by: Dave Jiang <[email protected]>
> ---
> 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 <[email protected]>

Reply via email to