]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: rockchip-pcie: Use guard notation when acquiring mutex
authorAnand Moon <linux.amoon@gmail.com>
Sat, 12 Oct 2024 07:19:08 +0000 (12:49 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Dec 2024 13:27:08 +0000 (18:57 +0530)
commitc90a7a685a5d90228cedf7a5068f50b3da23ddfc
tree3d5bd55da4ad4dc090d86d0c1bb1026327eb1124
parent96522eeb8735449957272e9c6f8ea3b72dcbdeb8
phy: rockchip-pcie: Use guard notation when acquiring mutex

Using guard notation makes the code more compact and error handling
more robust by ensuring that mutexes are released in all code paths
when control leaves critical section.

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