Commit 68dd28e
mptcp: pm: in-kernel: use kmemdup helper
Instead of using kmalloc() or kzalloc() to allocate an entry and
then immediately duplicate another entry to the newly allocated
one, kmemdup() helper can be used to simplify the code.
Signed-off-by: Geliang Tang <[email protected]>1 parent 8254aa4 commit 68dd28e
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1156 | 1156 | | |
1157 | 1157 | | |
1158 | 1158 | | |
1159 | | - | |
| 1159 | + | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
1163 | | - | |
1164 | 1163 | | |
1165 | 1164 | | |
1166 | 1165 | | |
| |||
1422 | 1421 | | |
1423 | 1422 | | |
1424 | 1423 | | |
1425 | | - | |
| 1424 | + | |
1426 | 1425 | | |
1427 | 1426 | | |
1428 | 1427 | | |
1429 | 1428 | | |
1430 | 1429 | | |
1431 | | - | |
1432 | 1430 | | |
1433 | 1431 | | |
1434 | 1432 | | |
| |||
0 commit comments