Commit 91314e7d authored by Hamish Claxton's avatar Hamish Claxton Committed by Alex Deucher
Browse files

drm/amd/display: Fix failure to read vram info due to static BP_RESULT

The static declaration causes the check to fail.  Remove it.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3678


Fixes: 00c39110 ("drm/amd/display: Add misc DC changes for DCN401")
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarHamish Claxton <hamishclaxton@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: aurabindo.pillai@amd.com
Cc: hamishclaxton@gmail.com
parent e8fc090d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3122,7 +3122,7 @@ static enum bp_result bios_parser_get_vram_info(
		struct dc_vram_info *info)
{
	struct bios_parser *bp = BP_FROM_DCB(dcb);
	static enum bp_result result = BP_RESULT_BADBIOSTABLE;
	enum bp_result result = BP_RESULT_BADBIOSTABLE;
	struct atom_common_table_header *header;
	struct atom_data_revision revision;