Commit 5957c19
iommu: Tidy the control flow in iommu_group_store_type()
Use a normal "goto unwind" instead of trying to be clever with checking
!ret and manually managing the unlock.
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Tested-by: Niklas Schnelle <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent e996c12 commit 5957c19
1 file changed
+15
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
| 2943 | + | |
2943 | 2944 | | |
2944 | 2945 | | |
2945 | 2946 | | |
| |||
2964 | 2965 | | |
2965 | 2966 | | |
2966 | 2967 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
| 2968 | + | |
| 2969 | + | |
2970 | 2970 | | |
2971 | | - | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
2972 | 2974 | | |
2973 | 2975 | | |
2974 | 2976 | | |
2975 | 2977 | | |
2976 | | - | |
2977 | | - | |
| 2978 | + | |
| 2979 | + | |
2978 | 2980 | | |
2979 | 2981 | | |
2980 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
2981 | 2985 | | |
2982 | 2986 | | |
2983 | 2987 | | |
| |||
2988 | 2992 | | |
2989 | 2993 | | |
2990 | 2994 | | |
2991 | | - | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
2997 | 2998 | | |
| 2999 | + | |
| 3000 | + | |
2998 | 3001 | | |
2999 | 3002 | | |
3000 | 3003 | | |
| |||
0 commit comments