提交 5aa133d6 编写于 作者: W Wang YanQing 提交者: Tomi Valkeinen

fbcon: trivial optimization for fbcon_exit

Break out as soon as we find a mapped entry con2fb_map.
Signed-off-by: NWang YanQing <udknight@gmail.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 8fe940af
......@@ -3547,8 +3547,10 @@ static void fbcon_exit(void)
"no"));
for (j = first_fb_vc; j <= last_fb_vc; j++) {
if (con2fb_map[j] == i)
if (con2fb_map[j] == i) {
mapped = 1;
break;
}
}
if (mapped) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册