Allocate the memory with scoped/cleanup.h to reduce error handling (less error paths) and make the code a bit simpler. Best regards, Krzysztof --- Krzysztof Kozlowski (5): soc: qcom: llcc: simplify with cleanup.h soc: qcom: mdt_loader: simplify with cleanup.h soc: qcom: ocmem: simplify with cleanup.h soc: qcom: pdr: simplify with cleanup.h soc: qcom: wcnss: simplify with cleanup.h drivers/soc/qcom/llcc-qcom.c | 6 ++---- drivers/soc/qcom/mdt_loader.c | 6 ++---- drivers/soc/qcom/ocmem.c | 10 ++++------ drivers/soc/qcom/pdr_interface.c | 38 ++++++++++++++------------------------ drivers/soc/qcom/wcnss_ctrl.c | 11 +++++------ 5 files changed, 27 insertions(+), 44 deletions(-) --- base-commit: eec3a8b019937cc4520772df2657a8a105250e04 change-id: 20240703-thermal-const-7fb8e172c183 Best regards, -- Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>