[Spice-devel] [PATCH 2/2] server/tests remove useless assignment

Christophe Fergeau cfergeau at gmail.com
Tue Mar 22 05:41:12 PDT 2011


This was detected by clang-static-analyzer.
---
 server/tests/basic_event_loop.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c
index 2fe1b69..8db4426 100644
--- a/server/tests/basic_event_loop.c
+++ b/server/tests/basic_event_loop.c
@@ -302,7 +302,6 @@ void basic_event_loop_mainloop(void)
     while (1) {
         FD_ZERO(&rfds);
         FD_ZERO(&wfds);
-        watch = (SpiceWatch*)watches.next;
         i = 0;
         RING_FOREACH_SAFE(link, next, &watches) {
             watch = (SpiceWatch*)link;
-- 
1.7.4



More information about the Spice-devel mailing list