diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-06-26 07:26:44 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 16:58:31 (GMT) |
commit | 17cc6281c12b26425209c58e3d8825a9568db3cc (patch) | |
tree | ad5d9b0dc35765e7d2ae8c7d53784531ba1e690f /drivers/video | |
parent | 8126a044f9e686f4ecf95e32fd89ad1dd48b4183 (diff) | |
download | linux-17cc6281c12b26425209c58e3d8825a9568db3cc.tar.xz |
[PATCH] fbdev: Coverity Bug 90
It's a false positive, but let's suppress it anyway.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/modedb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index 1aa36d3..7e539b6 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c @@ -791,8 +791,9 @@ 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) - best = mode; + } else if (diff == d && best && + mode->refresh > best->refresh) + best = mode; } } return best; |