Re: [PATCH] drm/xe/vm: Simplify if condition

2024-06-05 Thread Matthew Brost
On Tue, Jun 04, 2024 at 06:06:22PM +, Matthew Brost wrote: > On Mon, Jun 03, 2024 at 08:00:07PM +0200, Thorsten Blum wrote: > > The if condition !A || A && B can be simplified to !A || B. > > > > Fixes the following Coccinelle/coccicheck warning reported by > > excluded_middle.cocci: > > > >

Re: [PATCH] drm/xe/vm: Simplify if condition

2024-06-04 Thread Matthew Brost
On Mon, Jun 03, 2024 at 08:00:07PM +0200, Thorsten Blum wrote: > The if condition !A || A && B can be simplified to !A || B. > > Fixes the following Coccinelle/coccicheck warning reported by > excluded_middle.cocci: > > WARNING !A || A && B is equivalent to !A || B > > Compile-tested only.

[PATCH] drm/xe/vm: Simplify if condition

2024-06-03 Thread Thorsten Blum
The if condition !A || A && B can be simplified to !A || B. Fixes the following Coccinelle/coccicheck warning reported by excluded_middle.cocci: WARNING !A || A && B is equivalent to !A || B Compile-tested only. Signed-off-by: Thorsten Blum --- drivers/gpu/drm/xe/xe_vm.c | 4 ++-- 1 f