From bbe3f058ecb62bce041a0b03d76f6b9337dc81af Mon Sep 17 00:00:00 2001 From: Dmytro Laktyushkin Date: Thu, 2 Nov 2017 15:07:25 -0400 Subject: [PATCH] drm/amd/display: fix uninitialized variable warning Signed-off-by: Dmytro Laktyushkin Reviewed-by: Dmytro Laktyushkin Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c index bbf93c94a977..d8929b31e5ba 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c @@ -188,7 +188,7 @@ static void dpp1_cm_set_regamma_pwl( struct dpp *dpp_base, const struct pwl_params *params, enum opp_regamma mode) { struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); - uint32_t re_mode; + uint32_t re_mode = 0; switch (mode) { case OPP_REGAMMA_BYPASS: -- 2.30.2