summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xcb_in.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xcb_in.c b/src/xcb_in.c
index 15bc915..db9d1ca 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -312,9 +312,7 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **
reader_list **prev_reader;
for(prev_reader = &c->in.readers; *prev_reader && (*prev_reader)->request <= request; prev_reader = &(*prev_reader)->next)
- if((*prev_reader)->request == request)
- goto done; /* error */
-
+ /* empty */;
reader.request = request;
reader.data = &cond;
reader.next = *prev_reader;
@@ -324,7 +322,6 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **
if(!_xcb_conn_wait(c, &cond, 0, 0))
break;
-done:
for(prev_reader = &c->in.readers; *prev_reader && (*prev_reader)->request <= request; prev_reader = &(*prev_reader)->next)
if(*prev_reader == &reader)
{