Re: [PATCH] iommu/intel: Use logical OR operator for privilege mode check
Baolu Lu <[email protected]> Mon, 27 Jul 2026 10:46:52 +0800
| Newsgroups | dev.linux.lists.iommu,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 6/5/26 08:40, lirongqing wrote: > From: Li RongQing<[email protected]> > > 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<[email protected]> > --- > drivers/iommu/intel/prq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Queued for v7.3-rc1. Thanks a lot.