diff options
author | Muhammad Usama Anjum <musamaanjum@gmail.com> | 2021-04-05 21:49:04 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-04-06 23:39:13 +0200 |
commit | 957dca3df624abcbf895f5081fc664693aa0b363 (patch) | |
tree | 45528a4d61afcc5407935d9a256a57bfd51c750d /kernel/bpf/inode.c | |
parent | bpf, udp: Remove some pointless comments (diff) | |
download | linux-957dca3df624abcbf895f5081fc664693aa0b363.tar.xz linux-957dca3df624abcbf895f5081fc664693aa0b363.zip |
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/inode.c')
-rw-r--r-- | kernel/bpf/inode.c | 2 |
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; |