Re: [PATCH] iommu/intel: Use logical OR operator for privilege mode check

From: Baolu Lu

Date: Sun Jul 26 2026 - 22:48:58 EST


On 6/5/26 08:40, lirongqing wrote:
From: Li RongQing<lirongqing@xxxxxxxxx>

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@xxxxxxxxx>
---
drivers/iommu/intel/prq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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