drm/xe/vm: Simplify the calculation of variables
Subsystems (2)
PATCH 1/1 drm/xe/vm: Simplify the calculation of variables
./drivers/gpu/drm/xe/xe_vm.c:187:25-27: WARNING !A || A && B is equivalent to !A || B.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/xe/xe_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_vm.c +2 -2
@@ -184,8 +184,8 @@ static bool preempt_fences_waiting(struct xe_vm *vm)list_for_each_entry (q, &vm->preempt.exec_queues, compute.link) {if (!q->compute.pfence || - (q->compute.pfence &&test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , - &q->compute.pfence->flags))) { +test_bit (DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT , + &q->compute.pfence->flags)) {return true; } }
Signature · 1 line
2.20.1.7.g153144c