diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-07-03 10:30:46 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-07-06 19:56:38 +0200 |
commit | d99b680b4a9a33d0c47a68a4c1a45775023426ff (patch) | |
tree | 5807a6ec1e438bbcc530058eb11759f3386ecfec /drivers/firmware/qcom | |
parent | soc: qcom: socinfo: Add PM6350 PMIC (diff) | |
download | linux-d99b680b4a9a33d0c47a68a4c1a45775023426ff.tar.xz linux-d99b680b4a9a33d0c47a68a4c1a45775023426ff.zip |
firmware: qcom: tzmem: 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>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20240703083046.95811-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/firmware/qcom')
-rw-r--r-- | drivers/firmware/qcom/qcom_tzmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/qcom/qcom_tzmem.c b/drivers/firmware/qcom/qcom_tzmem.c index 5d526753183d..ab156ab3a6b4 100644 --- a/drivers/firmware/qcom/qcom_tzmem.c +++ b/drivers/firmware/qcom/qcom_tzmem.c @@ -242,7 +242,7 @@ qcom_tzmem_pool_new(const struct qcom_tzmem_pool_config *config) } } - return no_free_ptr(pool); + return_ptr(pool); } EXPORT_SYMBOL_GPL(qcom_tzmem_pool_new); |