Skip to content

Commit d99b680

Browse files
krzkandersson
authored andcommitted
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 <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 6e69746 commit d99b680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/qcom/qcom_tzmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ qcom_tzmem_pool_new(const struct qcom_tzmem_pool_config *config)
242242
}
243243
}
244244

245-
return no_free_ptr(pool);
245+
return_ptr(pool);
246246
}
247247
EXPORT_SYMBOL_GPL(qcom_tzmem_pool_new);
248248

0 commit comments

Comments
 (0)