diff options
author | Wang YanQing <udknight@gmail.com> | 2013-12-27 02:39:18 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-01-17 08:57:43 (GMT) |
commit | 5aa133d6c83b151690d8c3216ea45dfbd4452fbe (patch) | |
tree | efb0a908735d4275ce8aaf518be541483f2f3798 /drivers/video/console | |
parent | 8fe940af05faec9572583c65b987d2c41c44056d (diff) | |
download | linux-5aa133d6c83b151690d8c3216ea45dfbd4452fbe.tar.xz |
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>
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/fbcon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index cd8a802..f39931f 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -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) { |