mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 10:13:58 +08:00
aoe: remove unnecessary mutex_init()
The mutex ktio_spawn_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20210511113440.3772053-1-yangyingliang@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
51fd43e280
commit
65a8db393a
@ -1701,8 +1701,6 @@ aoecmd_init(void)
|
||||
goto ktiowq_fail;
|
||||
}
|
||||
|
||||
mutex_init(&ktio_spawn_lock);
|
||||
|
||||
for (i = 0; i < ncpus; i++) {
|
||||
INIT_LIST_HEAD(&iocq[i].head);
|
||||
spin_lock_init(&iocq[i].lock);
|
||||
|
Loading…
Reference in New Issue
Block a user