[Spice-devel] [PATCH 2/4] server/red_worker: remove redundant spice_warn_if in validate_surface

Frediano Ziglio fziglio at redhat.com
Fri Aug 28 02:25:50 PDT 2015


From: Alon Levy <alon at pobox.com>

---
 server/red_worker.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index d25feb0..1069055 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1308,7 +1308,6 @@ static inline int validate_surface(RedWorker *worker, uint32_t surface_id)
         spice_warning("canvas address is %p for %d (and is NULL)\n",
                    &(worker->surfaces[surface_id].context.canvas), surface_id);
         spice_warning("failed on %d", surface_id);
-        spice_warn_if(!worker->surfaces[surface_id].context.canvas);
         return 0;
     }
     return 1;
-- 
2.4.3



More information about the Spice-devel mailing list