diff options
author | Hou Tao <[email protected]> | 2024-12-06 19:06:15 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-12-06 09:14:25 -0800 |
commit | 3d5611b4d7efbefb85a74fcdbc35c603847cc022 (patch) | |
tree | 7fd820019ea7fd4f07c69b48be92f22b3e7b281f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 156c977c539e87e173f505b23989d7b0ec0bc7d8 (diff) |
bpf: Remove unnecessary kfree(im_node) in lpm_trie_update_elem
There is no need to call kfree(im_node) when updating element fails,
because im_node must be NULL. Remove the unnecessary kfree() for
im_node.
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: Hou Tao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions