Re: [PATCH] workqueue: Replace deprecated ida_simple_*() with ida_alloc()/ida_free()

From: Tejun Heo
Date: Mon Aug 09 2021 - 18:33:12 EST


On Wed, Aug 04, 2021 at 11:50:36AM +0800, Zhen Lei wrote:
> 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: Zhen Lei <thunder.leizhen@xxxxxxxxxx>

Applied to wq/for-5.15.

Thanks.

--
tejun