From de22d0c2264bd6dbacbbb4160d09c7e84ad37e70 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 9 Dec 2005 15:30:05 +0000 Subject: [PATCH] Fix a thinko so the code matches the comment --- hw/xfree86/common/xf86Config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index 855d6c6a2..ee05cc4d2 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -481,13 +481,14 @@ fixup_video_driver_list(char **drivers) for (drv = drivers; drv != end; drv++) { if (!strcmp(*drv, "atimisc")) { atimisc = drv; - for (drv = drivers; drv != end; drv++) { + for (drv = atimisc; drv != end; drv++) { if (!strcmp(*drv, "ati")) { ati = drv; x = *ati; *ati = *atimisc; *atimisc = x; return; } } + /* if we get here, ati was already ahead of atimisc */ } } }