linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linus.walleij@linaro.org (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dmaengine: cleanup with list_first_entry_or_null()
Date: Tue, 13 Sep 2016 13:39:47 +0200	[thread overview]
Message-ID: <CACRpkdZVhdU2shx5MpcbWwL3xvuPsNt25-bbrAmUXG7p29miNg@mail.gmail.com> (raw)
In-Reply-To: <1473703697-903-1-git-send-email-yamada.masahiro@socionext.com>

On Mon, Sep 12, 2016 at 8:08 PM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> The combo of list_empty() check and return list_first_entry()
> can be replaced with list_first_entry_or_null().
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Excellent deep semantics patch!

Yours,
Linus Walleij

  reply	other threads:[~2016-09-13 11:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12 18:08 [PATCH] dmaengine: cleanup with list_first_entry_or_null() Masahiro Yamada
2016-09-13 11:39 ` Linus Walleij [this message]
2016-09-14 13:42 ` Vinod Koul

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=CACRpkdZVhdU2shx5MpcbWwL3xvuPsNt25-bbrAmUXG7p29miNg@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).