Commit 65e4a06
mptcp: pm: avoid code duplication to lookup endp
The helper __lookup_addr() can be used in mptcp_pm_nl_get_local_id()
and mptcp_pm_nl_is_backup() to simplify the code, and avoid code
duplication.
Co-developed-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>1 parent d4e415f commit 65e4a06
1 file changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
| 1146 | + | |
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1151 | + | |
| 1152 | + | |
1157 | 1153 | | |
1158 | 1154 | | |
1159 | 1155 | | |
| |||
1180 | 1176 | | |
1181 | 1177 | | |
1182 | 1178 | | |
1183 | | - | |
| 1179 | + | |
1184 | 1180 | | |
1185 | 1181 | | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
| 1182 | + | |
| 1183 | + | |
1192 | 1184 | | |
1193 | 1185 | | |
1194 | 1186 | | |
| |||
0 commit comments