[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YRGtIXyY68M92gcT@mtj.duckdns.org>
Date: Mon, 9 Aug 2021 12:33:05 -1000
From: Tejun Heo <tj@...nel.org>
To: Zhen Lei <thunder.leizhen@...wei.com>
Cc: Lai Jiangshan <jiangshanlai@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [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@...wei.com>
Applied to wq/for-5.15.
Thanks.
--
tejun
Powered by blists - more mailing lists