All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cong Wang <xiyou.wangcong@gmail.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: iommu@lists.linux-foundation.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()
Date: Tue, 3 Dec 2019 11:28:24 -0800	[thread overview]
Message-ID: <CAM_iQpUC0v=0BETLP0=9O89g38Crx5pMB9jcvx3cEkafT+vUkg@mail.gmail.com> (raw)
In-Reply-To: <20191202165921.GB30032@infradead.org>

On Mon, Dec 2, 2019 at 8:59 AM Christoph Hellwig <hch@infradead.org> wrote:
>
> > +     return (mag && mag->size == IOVA_MAG_SIZE);
>
> > +     return (!mag || mag->size == 0);
>
> No need for the braces in both cases.

The current code is already this, I don't want to mix coding style
changes with a non-coding-style change. You can always remove
them in a separated patch if you feel necessary.

Thanks.

WARNING: multiple messages have this Message-ID (diff)
From: Cong Wang <xiyou.wangcong@gmail.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: iommu@lists.linux-foundation.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()
Date: Tue, 3 Dec 2019 11:28:24 -0800	[thread overview]
Message-ID: <CAM_iQpUC0v=0BETLP0=9O89g38Crx5pMB9jcvx3cEkafT+vUkg@mail.gmail.com> (raw)
In-Reply-To: <20191202165921.GB30032@infradead.org>

On Mon, Dec 2, 2019 at 8:59 AM Christoph Hellwig <hch@infradead.org> wrote:
>
> > +     return (mag && mag->size == IOVA_MAG_SIZE);
>
> > +     return (!mag || mag->size == 0);
>
> No need for the braces in both cases.

The current code is already this, I don't want to mix coding style
changes with a non-coding-style change. You can always remove
them in a separated patch if you feel necessary.

Thanks.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  reply	other threads:[~2019-12-03 19:28 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-29  0:48 [Patch v2 0/3] iommu: reduce spinlock contention on fast path Cong Wang
2019-11-29  0:48 ` Cong Wang
2019-11-29  0:48 ` [Patch v2 1/3] iommu: match the original algorithm Cong Wang
2019-11-29  0:48   ` Cong Wang
2019-11-29 14:43   ` John Garry
2019-11-29 14:43     ` John Garry
2019-11-30  5:58     ` Cong Wang
2019-11-30  5:58       ` Cong Wang
2019-12-02 10:55       ` John Garry
2019-12-02 10:55         ` John Garry
2019-12-03 19:26         ` Cong Wang
2019-12-03 19:26           ` Cong Wang
2019-12-02 16:58   ` Christoph Hellwig
2019-12-02 16:58     ` Christoph Hellwig
2019-12-03 19:24     ` Cong Wang
2019-12-03 19:24       ` Cong Wang
2019-11-29  0:48 ` [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns() Cong Wang
2019-11-29  0:48   ` Cong Wang
2019-11-29 13:24   ` John Garry
2019-11-29 13:24     ` John Garry
2019-11-30  6:02     ` Cong Wang
2019-11-30  6:02       ` Cong Wang
2019-12-02 10:02       ` John Garry
2019-12-02 10:02         ` John Garry
2019-12-03 19:40         ` Cong Wang
2019-12-03 19:40           ` Cong Wang
2019-12-02 16:59   ` Christoph Hellwig
2019-12-02 16:59     ` Christoph Hellwig
2019-12-03 19:28     ` Cong Wang [this message]
2019-12-03 19:28       ` Cong Wang
2019-11-29  0:48 ` [Patch v2 3/3] iommu: avoid taking iova_rbtree_lock twice Cong Wang
2019-11-29  0:48   ` Cong Wang
2019-11-29 13:34   ` John Garry
2019-11-29 13:34     ` John Garry
2019-11-30  6:03     ` Cong Wang
2019-11-30  6:03       ` Cong Wang
2019-12-17  9:43 ` [Patch v2 0/3] iommu: reduce spinlock contention on fast path Joerg Roedel
2019-12-17  9:43   ` Joerg Roedel
2019-12-18  4:32   ` Cong Wang
2019-12-18  4:32     ` Cong Wang

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='CAM_iQpUC0v=0BETLP0=9O89g38Crx5pMB9jcvx3cEkafT+vUkg@mail.gmail.com' \
    --to=xiyou.wangcong@gmail.com \
    --cc=hch@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-kernel@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 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.