dpll: zl3073x: Remove redundant cleanup in devm_dpll_init()
[ Upstream commit 676c7af91fcd740d34e7cb788cbc58e3bcafde39 ]
The devm_add_action_or_reset() function already executes the cleanup
action on failure before returning an error, so the explicit goto error
and subsequent zl3073x_dev_dpll_fini() call causes double cleanup.
Fixes: ebb1031c51 ("dpll: zl3073x: Refactor DPLL initialization")
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260224-dpll-v2-1-d7786414a830@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
900be42c53
commit
f8a06d5626
|
|
@ -978,11 +978,7 @@ zl3073x_devm_dpll_init(struct zl3073x_dev *zldev, u8 num_dplls)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add devres action to release DPLL related resources */
|
/* Add devres action to release DPLL related resources */
|
||||||
rc = devm_add_action_or_reset(zldev->dev, zl3073x_dev_dpll_fini, zldev);
|
return devm_add_action_or_reset(zldev->dev, zl3073x_dev_dpll_fini, zldev);
|
||||||
if (rc)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
error:
|
error:
|
||||||
zl3073x_dev_dpll_fini(zldev);
|
zl3073x_dev_dpll_fini(zldev);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue