Commit 9e7b7ab
cxl/region: Drop goto pattern in cxl_dax_region_alloc()
In cxl_dax_region_alloc(), there is a goto pattern to release the rwsem
cxl_region_rwsem when the function returns, the down_read() and up_read
can be replaced by a guard(rwsem_read) then the goto pattern can be
removed.
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Alison Schofield <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Li Ming <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>1 parent a81ebe7 commit 9e7b7ab
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
3044 | | - | |
3045 | | - | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
3046 | 3044 | | |
3047 | 3045 | | |
3048 | | - | |
3049 | | - | |
3050 | | - | |
3051 | | - | |
| 3046 | + | |
| 3047 | + | |
3052 | 3048 | | |
3053 | 3049 | | |
3054 | 3050 | | |
| |||
3061 | 3057 | | |
3062 | 3058 | | |
3063 | 3059 | | |
3064 | | - | |
3065 | | - | |
3066 | 3060 | | |
3067 | 3061 | | |
3068 | 3062 | | |
| |||
0 commit comments