mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Baolu Lu <baolu.lu@linux.intel.com>
To: lirongqing <lirongqing@baidu.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
	Robin Murphy <robin.murphy@arm.com>,
	iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iommu/intel: Use logical OR operator for privilege mode check
Date: Mon, 27 Jul 2026 10:46:52 +0800	[thread overview]
Message-ID: <02e80e6d-7709-425f-8b00-bcdf38368575@linux.intel.com> (raw)
In-Reply-To: <20260605004053.1867-1-lirongqing@baidu.com>

On 6/5/26 08:40, lirongqing wrote:
> From: Li RongQing<lirongqing@baidu.com>
> 
> Replace bitwise OR (|) with logical OR (||) in the privilege mode
> validation check. While both operators produce the same result for
> boolean values (0 or 1), using logical OR is semantically correct and
> makes the intent clearer.
> 
> No functional change, but improves code readability.
> 
> Signed-off-by: Li RongQing<lirongqing@baidu.com>
> ---
>   drivers/iommu/intel/prq.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Queued for v7.3-rc1. Thanks a lot.

      reply	other threads:[~2026-07-27  2:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05  0:40 lirongqing
2026-07-27  2:46 ` Baolu Lu [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=02e80e6d-7709-425f-8b00-bcdf38368575@linux.intel.com \
    --to=baolu.lu@linux.intel.com \
    --cc=dwmw2@infradead.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lirongqing@baidu.com \
    --cc=robin.murphy@arm.com \
    --cc=will@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®