Skip to content
Commit e441b56f authored by Zhen Lei's avatar Zhen Lei Committed by Tejun Heo
Browse files

workqueue: Replace deprecated ida_simple_*() with ida_alloc()/ida_free()



Replace ida_simple_get() with ida_alloc() and ida_simple_remove() with
ida_free(), the latter is more concise and intuitive.

In addition, if ida_alloc() fails, NULL is returned directly. This
eliminates unnecessary initialization of two local variables and an 'if'
judgment.

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 67dc8325
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment