Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Thorsten Blum <thorsten.blum@toblux.com>
Cc: <lucas.demarchi@intel.com>, <ogabbay@kernel.org>,
	<thomas.hellstrom@linux.intel.com>,
	<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
	<tzimmermann@suse.de>, <airlied@gmail.com>, <daniel@ffwll.ch>,
	<intel-xe@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/xe/vm: Simplify if condition
Date: Wed, 5 Jun 2024 16:37:11 +0000	[thread overview]
Message-ID: <ZmCUN0bb/d2NnftV@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <Zl9XnmJQMjeNDtko@DUT025-TGLU.fm.intel.com>

On Tue, Jun 04, 2024 at 06:06:22PM +0000, 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:
> > 
> > 	WARNING !A || A && B is equivalent to !A || B
> > 
> > Compile-tested only.
> > 
> > Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
> 
> Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> 
> Will get this merged once our CI system is working.
> 

Applied to drm-xe-next. Thanks for patch.

Matt

> > ---
> >  drivers/gpu/drm/xe/xe_vm.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
> > index 4aa3943e6f29..3137cbbaabde 100644
> > --- a/drivers/gpu/drm/xe/xe_vm.c
> > +++ b/drivers/gpu/drm/xe/xe_vm.c
> > @@ -85,8 +85,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;
> >  		}
> >  	}
> > -- 
> > 2.39.2
> > 

  reply	other threads:[~2024-06-05 16:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03 18:00 [PATCH] drm/xe/vm: Simplify if condition Thorsten Blum
2024-06-04 18:06 ` Matthew Brost
2024-06-05 16:37   ` Matthew Brost [this message]
2024-06-05  1:54 ` ✓ CI.Patch_applied: success for " Patchwork
2024-06-05  1:54 ` ✓ CI.checkpatch: " Patchwork
2024-06-05  1:55 ` ✓ CI.KUnit: " Patchwork
2024-06-05  2:07 ` ✓ CI.Build: " Patchwork
2024-06-05  2:07 ` ✗ CI.Hooks: failure " Patchwork
2024-06-05  2:08 ` ✓ CI.checksparse: success " Patchwork
2024-06-05  2:36 ` ✓ CI.BAT: " Patchwork
2024-06-05 11:10 ` ✗ CI.FULL: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZmCUN0bb/d2NnftV@DUT025-TGLU.fm.intel.com \
    --to=matthew.brost@intel.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucas.demarchi@intel.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=ogabbay@kernel.org \
    --cc=thomas.hellstrom@linux.intel.com \
    --cc=thorsten.blum@toblux.com \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox