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
|
@ -82,8 +82,6 @@ xf86CallDriverProbe(DriverPtr drv, Bool detect_only)
|
||||||
if (!xf86DoConfigure && drv->platformProbe != NULL) {
|
if (!xf86DoConfigure && drv->platformProbe != NULL) {
|
||||||
foundScreen = xf86platformProbeDev(drv);
|
foundScreen = xf86platformProbeDev(drv);
|
||||||
}
|
}
|
||||||
if (ServerIsNotSeat0() && foundScreen)
|
|
||||||
return foundScreen;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XSERVER_LIBPCIACCESS
|
#ifdef XSERVER_LIBPCIACCESS
|
||||||
|
|
Loading…
Reference in New Issue