Commit 2667bd6
serial: 8250_port: simplify serial8250_request_std_resource()
Return immediately from the error locations or switch-case ends. It is
therefore easier to see the flow.
Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent dc7d366 commit 2667bd6
1 file changed
+10
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2966 | 2966 | | |
2967 | 2967 | | |
2968 | 2968 | | |
2969 | | - | |
2970 | 2969 | | |
2971 | 2970 | | |
2972 | 2971 | | |
| |||
2975 | 2974 | | |
2976 | 2975 | | |
2977 | 2976 | | |
2978 | | - | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
| 2977 | + | |
| 2978 | + | |
2982 | 2979 | | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
2986 | | - | |
| 2980 | + | |
| 2981 | + | |
2987 | 2982 | | |
2988 | 2983 | | |
2989 | 2984 | | |
2990 | 2985 | | |
2991 | 2986 | | |
2992 | | - | |
| 2987 | + | |
2993 | 2988 | | |
2994 | 2989 | | |
2995 | | - | |
2996 | | - | |
| 2990 | + | |
2997 | 2991 | | |
2998 | 2992 | | |
2999 | 2993 | | |
3000 | | - | |
3001 | | - | |
| 2994 | + | |
| 2995 | + | |
3002 | 2996 | | |
3003 | | - | |
| 2997 | + | |
| 2998 | + | |
3004 | 2999 | | |
3005 | 3000 | | |
3006 | 3001 | | |
| |||
0 commit comments