mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 10:18:14 +02:00
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>
This commit is contained in:
parent
a46afee84d
commit
b72d161cad
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue