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

walter harms wharms at bfs.de
Mon Apr 11 16:24:37 UTC 2016


remove dead code
_XIOError(dpy); will never return and the return never reached

Signed-off-by: walter harms <wharms at bfs.de>

---
 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