mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 14:24:25 +08:00
[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>
This commit is contained in:
parent
8126a044f9
commit
17cc6281c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user