]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, inode: Remove second initialization of the bpf_preload_lock
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Mon, 5 Apr 2021 19:49:04 +0000 (00:49 +0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 6 Apr 2021 21:39:13 +0000 (23:39 +0200)
commitf82de34b2c0257159aa2ce63746a18328dc4d5e3
tree45528a4d61afcc5407935d9a256a57bfd51c750d
parent80adeb8ec04be6cfae1f4b22008754c9f5d0afdc
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
kernel/bpf/inode.c