Message ID | 20240703083038.95777-1-krzysztof.kozlowski@linaro.org |
---|---|
State | Accepted |
Commit | eba6d0f88ba2c4e9175aae8556125a05980ff8f5 |
Headers | show |
Series | power: sequencing: simplify returning pointer without cleanup | expand |
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);
Use 'return_ptr' helper for returning a pointer without cleanup for shorter code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/power/sequencing/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)