summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2024-12-06 14:06:15 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-12-06 20:14:25 +0300
commit3d5611b4d7efbefb85a74fcdbc35c603847cc022 (patch)
tree7fd820019ea7fd4f07c69b48be92f22b3e7b281f /scripts/gdb/linux/utils.py
parent156c977c539e87e173f505b23989d7b0ec0bc7d8 (diff)
downloadlinux-3d5611b4d7efbefb85a74fcdbc35c603847cc022.tar.xz
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 <toke@redhat.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Hou Tao <houtao1@huawei.com> Link: https://lore.kernel.org/r/20241206110622.1161752-3-houtao@huaweicloud.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions