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

Commit 5aa133d6 authored by Wang YanQing's avatar Wang YanQing Committed by Tomi Valkeinen
Browse files

fbcon: trivial optimization for fbcon_exit



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

Signed-off-by: default avatarWang YanQing <udknight@gmail.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 8fe940af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {