From 886a3a8bba89134c16661ba81256735d7933ec7b Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 27 Sep 2016 14:30:10 +0200 Subject: [PATCH xserver v2 4/7] xfree86: Remove redundant ServerIsNotSeat0 check from xf86CallDriverProbe If foundScreen is TRUE, then all the code below the removed if will not execute until we reach the return foundScreen; at the end, so this entire if block is redundant. Signed-off-by: Hans de Goede --- hw/xfree86/common/xf86Bus.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 5b93940..27c6b1b 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -82,8 +82,6 @@ xf86CallDriverProbe(DriverPtr drv, Bool detect_only) if (!xf86DoConfigure && drv->platformProbe != NULL) { foundScreen = xf86platformProbeDev(drv); } - if (ServerIsNotSeat0() && foundScreen) - return foundScreen; #endif #ifdef XSERVER_LIBPCIACCESS -- 2.9.3