drm/amd/display: fix uninitialized variable warning
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 2 Nov 2017 19:07:25 +0000 (15:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:32 +0000 (12:47 -0500)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c

index bbf93c9..d8929b3 100644 (file)
@@ -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: