Thread (3 messages) flat view 3 messages, 3 authors, 2021-10-01

Re: [PATCH] phy: qcom-qmp: Make use of the helper function devm_add_action_or_reset()

From: Vinod Koul <vkoul@kernel.org>
Date: 2021-10-01 10:21:38
Also in: linux-arm-msm, lkml

On 22-09-21, 21:00, Cai Huoqing wrote:
The helper function devm_add_action_or_reset() will internally
call devm_add_action(), and gif devm_add_action() fails then it will
execute the action mentioned and return the error code. So
use devm_add_action_or_reset() instead of devm_add_action()
to simplify the error handling, reduce the code.
Applied, thanks

-- 
~Vinod

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help