Commit 52e86eb
mptcp: sockopt: drop redundant tcp_getsockopt
tcp_getsockopt() is called twice in mptcp_getsockopt_first_sf_only(), which
makes the code a bit redundant. The first call to tcp_getsockopt() when the
first subflow exists can be replaced by going to a new label "get" before
the second call.
Signed-off-by: Geliang Tang <[email protected]>1 parent 4cf2cf4 commit 52e86eb
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
| 917 | + | |
| 918 | + | |
921 | 919 | | |
922 | 920 | | |
923 | 921 | | |
924 | 922 | | |
925 | 923 | | |
926 | 924 | | |
927 | 925 | | |
| 926 | + | |
928 | 927 | | |
929 | 928 | | |
930 | 929 | | |
| |||
0 commit comments