Fix a thinko so the code matches the comment

This commit is contained in:
Adam Jackson 2005-12-09 15:30:05 +00:00
parent 6fcb049cd0
commit de22d0c226

View File

@ -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 */
}
}
}