mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] workqueue: Replace deprecated ida_simple_*() with ida_alloc()/ida_free()
Date: Mon, 9 Aug 2021 12:33:05 -1000	[thread overview]
Message-ID: <YRGtIXyY68M92gcT@mtj.duckdns.org> (raw)
In-Reply-To: <20210804035036.2211-1-thunder.leizhen@huawei.com>

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

      reply	other threads:[~2021-08-09 22:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  3:50 Zhen Lei
2021-08-09 22:33 ` Tejun Heo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRGtIXyY68M92gcT@mtj.duckdns.org \
    --to=tj@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thunder.leizhen@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®