lkml.org 
[lkml]   [2021]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] workqueue: Replace deprecated ida_simple_*() with ida_alloc()/ida_free()
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@huawei.com>

Applied to wq/for-5.15.

Thanks.

--
tejun

\
 
 \ /
  Last update: 2021-08-10 00:34    [W:0.031 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site