Commit c6d9daf
bpf: Use kvmemdup to simplify the code
Use kvmemdup instead of kvmalloc() + memcpy() to simplify the
code.
No functional change intended.
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Hongbo Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent 89dd9bb commit c6d9daf
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6272 | 6272 | | |
6273 | 6273 | | |
6274 | 6274 | | |
6275 | | - | |
| 6275 | + | |
6276 | 6276 | | |
6277 | 6277 | | |
6278 | 6278 | | |
6279 | 6279 | | |
6280 | | - | |
6281 | 6280 | | |
6282 | 6281 | | |
6283 | 6282 | | |
| |||
0 commit comments