]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: rockchip-pcie: Refactor mutex handling in rockchip_pcie_phy_power_off()
authorAnand Moon <linux.amoon@gmail.com>
Sat, 12 Oct 2024 07:19:06 +0000 (12:49 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Dec 2024 13:27:08 +0000 (18:57 +0530)
commitbb70d1aae565fd52e6a50e643d1ad6e7d419c2a5
tree08b7db5765ecc0d837a6cdee65c95cd95d2ab130
parentcb0ba26ad09398d3d0d10f518af4ccae69c8b64e
phy: rockchip-pcie: Refactor mutex handling in rockchip_pcie_phy_power_off()

Refactor the mutex handling in the rockchip_pcie_phy_power_off() function
to improve code readability and maintainability. The goto statement has
been removed, and the mutex_unlock call is now directly within the
conditional block.

Return the result of reset_control_assert() function, with 0 indicating
success and an error code indicating failure

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20241012071919.3726-5-linux.amoon@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-pcie.c