[PATCH libX11 2/4] _XIOError(dpy); will never return so remore dead

walter harms wharms at bfs.de
Thu Mar 31 17:12:17 UTC 2016



Signed-off-by: walter harms <wharms at bfs.de>
---
remove dead code as _XIOError will never return

---
 src/xcb_io.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/xcb_io.c b/src/xcb_io.c
index bd26a62..4826621 100644
--- a/src/xcb_io.c
+++ b/src/xcb_io.c
@@ -700,10 +700,8 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
 	/* it's not an error, but we don't have a reply, so it's an I/O
 	 * error. */
 	if(!reply)
-	{
 		_XIOError(dpy);
-		return 0;
-	}
+	

 	/* there's no error and we have a reply. */
 	dpy->xcb->reply_data = reply;
-- 
2.1.4



More information about the xorg-devel mailing list