diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-09-27 14:30:10 +0200 |
---|---|---|
committer | Timo Aaltonen <tjaalton@debian.org> | 2018-02-13 10:32:10 +0200 |
commit | 72abbbf5d9facbdde0116223619a3412bf0bdb92 (patch) | |
tree | 1ec799a2f07b123e00004c122dd28226c61f3879 | |
parent | 56547b196660e246e37132960723819972b99c8c (diff) |
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.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit b72d161cad15bec9dd082d30521c5383be526c56)
-rw-r--r-- | hw/xfree86/common/xf86Bus.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 5b93940a2..27c6b1b8b 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 |