SDL: X11_WaitEventTimeout: remove unreachable return

From 0403fa8aa6e8bb2c19450331b302f317f1908ff3 Mon Sep 17 00:00:00 2001
From: rohlem <[EMAIL REDACTED]>
Date: Sun, 2 Jan 2022 02:36:23 +0100
Subject: [PATCH] X11_WaitEventTimeout: remove unreachable return

If that condition was reachable, the return value should be negative to indicate that waiting for the timeout failed.
Otherwise, SDL_WaitEventTimeout would incorrectly return early.
---
 src/video/x11/SDL_x11events.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c
index 1d0bd798782..30e85744801 100644
--- a/src/video/x11/SDL_x11events.c
+++ b/src/video/x11/SDL_x11events.c
@@ -1602,10 +1602,6 @@ X11_WaitEventTimeout(_THIS, int timeout)
     SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
     Display *display;
     XEvent xevent;
-
-    if (!videodata) {
-        return 0;
-    }
     display = videodata->display;
 
     SDL_zero(xevent);