From ffe8bd4d6e296a0ded0e118aee05aa6cb3051c56 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 30 Jun 2014 10:55:20 +0100 Subject: [PATCH] sna: Silence snarky compliers 0 != (void *)0 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 6eafd26..fab0637 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -17814,7 +17814,7 @@ restart: if (sna_scanout_do_flush(sna)) sna_scanout_flush(sna); assert(sna_accel_scanout(sna) == NULL || - sna_accel_scanout(sna)->gpu_bo->needs_flush == NULL || + !sna_accel_scanout(sna)->gpu_bo->needs_flush || sna->timer_active & (1<<(FLUSH_TIMER))); if (sna_accel_do_throttle(sna)) -- 2.7.4