fbcon: trivial optimization for fbcon_exit

Break out as soon as we find a mapped entry con2fb_map.

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Wang YanQing 2013-12-27 10:39:18 +08:00 committed by Tomi Valkeinen
parent 8fe940af05
commit 5aa133d6c8

View File

@ -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) {