diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2024-06-28 12:18:54 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-07-02 15:26:57 +0200 |
commit | 2896624be30b049601ec3ef9b08df184d0c70495 (patch) | |
tree | d33b657120fd2e84f46fd1437ffe7751d2d9c754 /kernel/bpf/devmap.c | |
parent | e27d7168f0c8c024344e9541513aa71d921402a5 (diff) |
net: Remove task_struct::bpf_net_context init on fork.
There is no clone() invocation within a bpf_net_ctx_…() block. Therefore
the task_struct::bpf_net_context has always to be NULL and an explicit
initialisation is not required.
Remove the NULL assignment in the clone() path.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions