[PATCH spice-server] red-worker: Optimise check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use compile time check instead of running one.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/red-worker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/red-worker.c b/server/red-worker.c
index d6a5e77..9fd565f 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -1398,7 +1398,7 @@ static void *red_worker_main(void *arg)
     RedWorker *worker = arg;
 
     spice_info("begin");
-    spice_assert(MAX_PIPE_SIZE > WIDE_CLIENT_ACK_WINDOW &&
+    SPICE_VERIFY(MAX_PIPE_SIZE > WIDE_CLIENT_ACK_WINDOW &&
            MAX_PIPE_SIZE > NARROW_CLIENT_ACK_WINDOW); //ensure wakeup by ack message
 
     red_channel_reset_thread_id(RED_CHANNEL(worker->cursor_channel));
-- 
2.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]