All of lore.kernel.org
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Yang Yingliang <yangyingliang@huawei.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	vireshk@kernel.org
Subject: Re: [PATCH -next] opp: use list_del_init instead of list_del/INIT_LIST_HEAD
Date: Thu, 20 May 2021 09:33:37 +0530	[thread overview]
Message-ID: <20210520040337.k47l2fxstfs2l2q3@vireshk-i7> (raw)
In-Reply-To: <20210518044910.608878-1-yangyingliang@huawei.com>

On 18-05-21, 12:49, Yang Yingliang wrote:
> Using list_del_init() instead of list_del() + INIT_LIST_HEAD()
> to simpify the code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  drivers/opp/of.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/opp/of.c b/drivers/opp/of.c
> index c582a9ca397b..aa75a1caf08a 100644
> --- a/drivers/opp/of.c
> +++ b/drivers/opp/of.c
> @@ -433,8 +433,7 @@ static void lazy_link_required_opp_table(struct opp_table *new_table)
>  
>  		/* All required opp-tables found, remove from lazy list */
>  		if (!lazy) {
> -			list_del(&opp_table->lazy);
> -			INIT_LIST_HEAD(&opp_table->lazy);
> +			list_del_init(&opp_table->lazy);
>  
>  			list_for_each_entry(opp, &opp_table->opp_list, node)
>  				_required_opps_available(opp, opp_table->required_opp_count);

Applied. Thanks.

-- 
viresh

      reply	other threads:[~2021-05-20  4:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18  4:49 [PATCH -next] opp: use list_del_init instead of list_del/INIT_LIST_HEAD Yang Yingliang
2021-05-20  4:03 ` Viresh Kumar [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=20210520040337.k47l2fxstfs2l2q3@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=vireshk@kernel.org \
    --cc=yangyingliang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.