mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/xe: Remove no-op ternary in emit_flush_invalidate()
'|' binds tighter than the conditional operator, so the trailing "?: 0" tests the whole OR expression instead of just the TLB flag. MI_FLUSH_DW is non-zero, so the condition is always true and the expression evaluates to itself. Drop the ternary. The mask already yields 0 when MI_INVALIDATE_TLB is not set. No functional change. Cc: Matthew Auld <matthew.auld@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Assisted-by: LLM Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patch.msgid.link/20260923171527.663537-1-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
parent
5f05806319
commit
40bf599da3
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue