]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: Remove redundant cleanup in devm_dpll_init()
authorFelix Gu <ustc.gu@gmail.com>
Tue, 24 Feb 2026 11:04:04 +0000 (19:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 03:13:20 +0000 (19:13 -0800)
commit676c7af91fcd740d34e7cb788cbc58e3bcafde39
tree8edd3ec8ff2aadfa9518933e6afe33303260218d
parent7c9db1a1cd3be140f7807aa9f405cc17be59dc2a
dpll: zl3073x: Remove redundant cleanup in devm_dpll_init()

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: ebb1031c5137 ("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>
drivers/dpll/zl3073x/core.c