From d1aeaad5c6fc614c28129f5d2717c12ff7320081 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 22 Aug 2018 12:30:32 -0400 Subject: [PATCH] xfree86: Remove a fallback path we never hit If it's really this important we should just do it and not complain. We never do it so it must not matter. Signed-off-by: Adam Jackson --- hw/xfree86/common/xf86Init.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 12daa44d6..0a5af8272 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -538,17 +538,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv) return; } - for (i = 0; i < xf86NumScreens; i++) { - if (xf86Screens[i]->name == NULL) { - char *tmp; - XNFasprintf(&tmp, "screen%d", i); - xf86Screens[i]->name = tmp; - xf86MsgVerb(X_WARNING, 0, - "Screen driver %d has no name set, using `%s'.\n", - i, xf86Screens[i]->name); - } - } - /* Remove (unload) drivers that are not required */ for (i = 0; i < xf86NumDrivers; i++) if (xf86DriverList[i] && xf86DriverList[i]->refCount <= 0)