Thread (12 messages) 12 messages, 3 authors, 2021-11-30
STALE1648d LANDED

[PATCH 2/5] bpf: remove a redundant comment on bpf_prog_free

From: Christoph Hellwig <hch@lst.de>
Date: 2021-11-19 16:32:37
Also in: bpf, netdev
Subsystem: bpf [core], bpf [general] (safe dynamic programs and tools), the rest · Maintainers: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi, Linus Torvalds

The comment telling that the prog_free helper is freeing the program is
not exactly useful, so just remove it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 kernel/bpf/core.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index b52dc845ecea3..189d85d64bf1c 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2301,7 +2301,6 @@ static void bpf_prog_free_deferred(struct work_struct *work)
 	}
 }
 
-/* Free internal BPF program */
 void bpf_prog_free(struct bpf_prog *fp)
 {
 	struct bpf_prog_aux *aux = fp->aux;
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help