From: David Miller <davem@davemloft.net>
To: Julia.Lawall@inria.fr
Cc: linux-net-drivers@solarflare.com,
kernel-janitors@vger.kernel.org, ecree@solarflare.com,
mhabets@solarflare.com, kuba@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/7] sfc: drop unnecessary list_empty
Date: Mon, 27 Jul 2020 10:10:21 -0700 (PDT) [thread overview]
Message-ID: <20200727.101021.661505441351232064.davem@davemloft.net> (raw)
In-Reply-To: <1595761112-11003-3-git-send-email-Julia.Lawall@inria.fr>
From: Julia Lawall <Julia.Lawall@inria.fr>
Date: Sun, 26 Jul 2020 12:58:27 +0200
> list_for_each_safe is able to handle an empty list.
> The only effect of avoiding the loop is not initializing the
> index variable.
> Drop list_empty tests in cases where these variables are not
> used.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
...
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Applied to net-next.
next prev parent reply other threads:[~2020-07-27 17:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-26 10:58 [PATCH 0/7] " Julia Lawall
2020-07-26 10:58 ` [PATCH 1/7] ASoC: Intel: " Julia Lawall
2020-07-26 10:58 ` [PATCH 2/7] sfc: " Julia Lawall
2020-07-27 12:13 ` Edward Cree
2020-07-27 17:10 ` David Miller [this message]
2020-07-26 10:58 ` [PATCH 3/7] [media] cx231xx: " Julia Lawall
2020-07-26 10:58 ` [PATCH 4/7] net/mlx5: " Julia Lawall
2020-07-27 17:10 ` David Miller
2020-07-28 7:53 ` Saeed Mahameed
2020-07-26 10:58 ` [PATCH 5/7] [media] saa7134: " Julia Lawall
2020-07-26 10:58 ` [PATCH 6/7] [media] tm6000: " Julia Lawall
2020-07-26 10:58 ` [PATCH 7/7] ath: " Julia Lawall
2020-08-14 15:05 ` Kalle Valo
2020-07-30 22:28 ` [PATCH 0/7] " Mark Brown
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=20200727.101021.661505441351232064.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Julia.Lawall@inria.fr \
--cc=ecree@solarflare.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@solarflare.com \
--cc=mhabets@solarflare.com \
--cc=netdev@vger.kernel.org \
/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®