Commit eba6d0f8 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bartosz Golaszewski

power: sequencing: simplify returning pointer without cleanup

Use 'return_ptr' helper for returning a pointer without cleanup for
shorter code.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240703083038.95777-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 6140d185
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment