]> www.infradead.org Git - users/hch/block.git/commit
fbcon: break earlier in search_fb_in_map and search_for_mapped_con
authorQianqiang Liu <qianqiang.liu@163.com>
Thu, 26 Sep 2024 11:59:11 +0000 (19:59 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 26 Sep 2024 16:25:12 +0000 (18:25 +0200)
commit2555906fd53e0a5239431d44fad695b420e94fdd
treef99a8556cbac6b6c00d3c9352ba9d56b2aabbbb2
parentf1ebbe4cd07d058f42174cc5b8c5efcf83de8ffa
fbcon: break earlier in search_fb_in_map and search_for_mapped_con

Break the for loop immediately upon finding the target, making the
process more efficient.

Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbcon.c