diff mbox series

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

Message ID 20211119163215.971383-3-hch@lst.de (mailing list archive)
State Accepted
Delegated to: BPF
Headers show
Series [1/5] x86, bpf: cleanup the top of file header in bpf_jit_comp.c | expand

Checks

Context Check Description
bpf/vmtest-bpf-PR fail merge-conflict
bpf/vmtest-bpf-next-PR success PR summary
bpf/vmtest-bpf-next success VM_Test
netdev/tree_selection success Guessing tree name failed - patch did not apply, async

Commit Message

Christoph Hellwig Nov. 19, 2021, 4:32 p.m. UTC
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(-)

Comments

Song Liu Nov. 26, 2021, 6:39 a.m. UTC | #1
On Fri, Nov 19, 2021 at 8:32 AM Christoph Hellwig <hch@lst.de> wrote:
>
> 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>
Acked-by: Song Liu <songliubraving@fb.com>
diff mbox series

Patch

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;