Commit 3d6d917
committed
KVM: arm64: Use guard() to cleanup usage of arm_pmus_lock
Get rid of some goto label patterns by using guard() to drop the
arm_pmus_lock when returning from a function.
Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250305202641.428114-8-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>1 parent a38b67d commit 3d6d917
1 file changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
| 793 | + | |
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | 801 | | |
805 | 802 | | |
806 | 803 | | |
807 | 804 | | |
808 | | - | |
809 | 805 | | |
| 806 | + | |
810 | 807 | | |
811 | 808 | | |
812 | | - | |
| 809 | + | |
813 | 810 | | |
814 | 811 | | |
815 | 812 | | |
| |||
830 | 827 | | |
831 | 828 | | |
832 | 829 | | |
833 | | - | |
| 830 | + | |
834 | 831 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 832 | + | |
| 833 | + | |
839 | 834 | | |
840 | 835 | | |
841 | | - | |
842 | | - | |
843 | | - | |
| 836 | + | |
844 | 837 | | |
845 | 838 | | |
846 | 839 | | |
| |||
0 commit comments