aoe: remove unnecessary mutex_init()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/block/aoe/aoecmd.c | 2 -- 1 file changed, 2 deletions(-)
drivers/block/aoe/aoecmd.c +0 -2
@@ -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);
Signature · 1 line
2.25.1
Quoted 2 lines · Yang Yingliang
The mutex
ktio_spawn_lockis initialized statically. It is unnecessary to initialize bymutex_init().
Applied, thanks.
Signature · 1 line
Jens Axboe