diff options
| author | Markus Elfring <[email protected]> | 2024-09-26 11:30:42 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-04 00:47:35 +0000 |
| commit | 40f34d6f12e292875b8027ec66038cabb5a317f6 (patch) | |
| tree | ead443e18ea09a79d82effa6b635c17f8a983bd6 /scripts/bpf_doc.py | |
| parent | libbpf: Remove unneeded semicolon (diff) | |
| download | kernel-40f34d6f12e292875b8027ec66038cabb5a317f6.tar.gz kernel-40f34d6f12e292875b8027ec66038cabb5a317f6.zip | |
bpf: Call kfree(obj) only once in free_one()
A kfree() call is always used at the end of this function implementation.
Thus specify such a function call only once instead of duplicating it
in a previous if branch.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
