summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-07-03 10:30:38 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-07-03 11:49:04 +0200
commiteba6d0f88ba2c4e9175aae8556125a05980ff8f5 (patch)
tree2c1319b0c021053e41862df187b052a4dc338909 /drivers/power
parent6140d185a43daa298d43453929560388d6d49b6e (diff)
power: sequencing: simplify returning pointer without cleanup
Use 'return_ptr' helper for returning a pointer without cleanup for shorter code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240703083038.95777-1-krzysztof.kozlowski@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/sequencing/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/sequencing/core.c b/drivers/power/sequencing/core.c
index 9e606c9f6f04..9c32b07a55e7 100644
--- a/drivers/power/sequencing/core.c
+++ b/drivers/power/sequencing/core.c
@@ -687,7 +687,7 @@ struct pwrseq_desc *pwrseq_get(struct device *dev, const char *target)
/* No device matched. */
return ERR_PTR(-EPROBE_DEFER);
- return no_free_ptr(desc);
+ return_ptr(desc);
}
EXPORT_SYMBOL_GPL(pwrseq_get);