Commit fd92b90
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 443343d commit fd92b90
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| |||
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
820 | | - | |
| 819 | + | |
821 | 820 | | |
822 | 821 | | |
823 | 822 | | |
824 | 823 | | |
825 | 824 | | |
826 | | - | |
827 | 825 | | |
828 | 826 | | |
829 | 827 | | |
| |||
0 commit comments