Commit 0f168e7b authored by Shixiong Ou's avatar Shixiong Ou Committed by Simona Vetter
Browse files

fbcon: Fix outdated registered_fb reference in comment



The variable was renamed to fbcon_registered_fb, but this comment was
not updated along with the change. Correct it to avoid confusion.

Signed-off-by: default avatarShixiong Ou <oushixiong@kylinos.cn>
Fixes: efc3acbc ("fbcon: Maintain a private array of fb_info")
[sima: Add Fixes: line.]
Signed-off-by: default avatarSimona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250709103438.572309-1-oushixiong1025@163.com
parent 820845ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -953,13 +953,13 @@ static const char *fbcon_startup(void)
	int rows, cols;

	/*
	 *  If num_registered_fb is zero, this is a call for the dummy part.
	 *  If fbcon_num_registered_fb is zero, this is a call for the dummy part.
	 *  The frame buffer devices weren't initialized yet.
	 */
	if (!fbcon_num_registered_fb || info_idx == -1)
		return display_desc;
	/*
	 * Instead of blindly using registered_fb[0], we use info_idx, set by
	 * Instead of blindly using fbcon_registered_fb[0], we use info_idx, set by
	 * fbcon_fb_registered();
	 */
	info = fbcon_registered_fb[info_idx];