projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fe940a
)
fbcon: trivial optimization for fbcon_exit
author
Wang YanQing
<udknight@gmail.com>
Fri, 27 Dec 2013 02:39:18 +0000
(10:39 +0800)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Fri, 17 Jan 2014 08:57:43 +0000
(10:57 +0200)
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>
drivers/video/console/fbcon.c
patch
|
blob
|
history
diff --git
a/drivers/video/console/fbcon.c
b/drivers/video/console/fbcon.c
index cd8a8027f8aeef2c9de03e9bd1ba9b7c4f040b35..f39931f818b8cf0d2ab25a97ee4af03310692229 100644
(file)
--- 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) {