iommu/vt-d: Use logical OR operator for privilege mode check

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>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
Li RongQing 2026-08-05 07:42:56 +08:00 committed by Joerg Roedel
parent c6e63fc8e8
commit 710fe30142

View File

@ -223,7 +223,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
goto prq_advance;
}
if (unlikely(req->pm_req && (req->rd_req | req->wr_req))) {
if (unlikely(req->pm_req && (req->rd_req || req->wr_req))) {
pr_err("IOMMU: %s: Page request in Privilege Mode\n",
iommu->name);
goto bad_req;