From 54e51de8cd950b3f5b30e72cf1d604f54f619f0e Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Sat, 24 Apr 2010 23:07:47 -0700 Subject: [PATCH] ProcGrabButton: remove redundant error check. If dixLookupResourceByType did not return Success, it will have set the pointer to NULL, so the second if will always be true. Signed-off-by: Jamey Sharp Reviewed-by: Alan Coopersmith --- dix/events.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dix/events.c b/dix/events.c index 6d0137da4..b26e28af7 100644 --- a/dix/events.c +++ b/dix/events.c @@ -5355,7 +5355,6 @@ ProcGrabButton(ClientPtr client) rc = dixLookupResourceByType((pointer *)&cursor, stuff->cursor, RT_CURSOR, client, DixUseAccess); if (rc != Success) - if (!cursor) { client->errorValue = stuff->cursor; return (rc == BadValue) ? BadCursor : rc;