Message ID | 20210405194904.GA148013@LEGION (mailing list archive) |
---|---|
State | Accepted |
Commit | 957dca3df624abcbf895f5081fc664693aa0b363 |
Delegated to: | BPF |
Headers | show |
Series | inode: Remove second initialization of the bpf_preload_lock | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Tue, 6 Apr 2021 00:49:04 +0500 you wrote: > 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> > --- > kernel/bpf/inode.c | 2 -- > 1 file changed, 2 deletions(-) Here is the summary with links: - inode: Remove second initialization of the bpf_preload_lock https://git.kernel.org/bpf/bpf-next/c/957dca3df624 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
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;
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> --- kernel/bpf/inode.c | 2 -- 1 file changed, 2 deletions(-)