Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17cc6281 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds
Browse files

[PATCH] fbdev: Coverity Bug 90



It's a false positive, but let's suppress it anyway.

Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8126a044
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -791,7 +791,8 @@ struct fb_videomode *fb_find_best_mode(struct fb_var_screeninfo *var,
			if (diff > d) {
				diff = d;
				best = mode;
			} else if (diff == d && mode->refresh > best->refresh)
			} else if (diff == d && best &&
				   mode->refresh > best->refresh)
				best = mode;
		}
	}