Commit 957dca3d authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Daniel Borkmann
Browse files

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: default avatarMuhammad Usama Anjum <musamaanjum@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210405194904.GA148013@LEGION
parent 928dc406
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;