<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/drivers/video/modedb.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/video/modedb.c~video-mode-handling-linked-list-of-video-modes-build-fix drivers/video/modedb.c
--- 25/drivers/video/modedb.c~video-mode-handling-linked-list-of-video-modes-build-fix	2004-08-08 23:30:48.260406832 -0700
+++ 25-akpm/drivers/video/modedb.c	2004-08-08 23:31:03.227131544 -0700
@@ -683,9 +683,10 @@ struct fb_videomode *fb_find_best_mode(s
 	u32 diff = -1;
 
 	list_for_each(pos, head) {
+		u32 d;
+
 		modelist = list_entry(pos, struct fb_modelist, list);
 		mode = &amp;modelist-&gt;mode;
-		u32 d;
 
 		if (mode-&gt;xres &gt;= var-&gt;xres &amp;&amp; mode-&gt;yres &gt;= var-&gt;yres) {
 			d = (mode-&gt;xres - var-&gt;xres) +
_
</pre></body></html>