aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorMuhammad Usama Anjum2021-04-06 00:49:04 +0500
committerDaniel Borkmann2021-04-06 23:39:13 +0200
commit957dca3df624abcbf895f5081fc664693aa0b363 (patch)
tree45528a4d61afcc5407935d9a256a57bfd51c750d /kernel/bpf
parent928dc406802dc4547b5ef84c3075fe144d4cbcf1 (diff)
bpf, inode: Remove second initialization of the bpf_preload_lock
bpf_preload_lock is already defined with DEFINE_MUTEX(). There is no need to initialize it again. Remove the extraneous initialization. Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20210405194904.GA148013@LEGION
Diffstat (limited to 'kernel/bpf')
-rw-r--r--kernel/bpf/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c
index 1576ff331ee4..f441d521ef77 100644
--- a/kernel/bpf/inode.c
+++ b/kernel/bpf/inode.c
@@ -816,8 +816,6 @@ static int __init bpf_init(void)
{
int ret;
- mutex_init(&bpf_preload_lock);
-
ret = sysfs_create_mount_point(fs_kobj, "bpf");
if (ret)
return ret;