drm/amd/display: Fix warning about uninitialized variable
authorHarry Wentland <harry.wentland@amd.com>
Wed, 4 Oct 2017 17:54:35 +0000 (13:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:50:48 +0000 (16:50 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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/dce/dce_mem_input.c

index ed301c3b2736720e744735b0a3fc60b4089416e9..0790f25c7b3b05ce952642abe1b6bc14164025b4 100644 (file)
@@ -361,7 +361,7 @@ static void program_grph_pixel_format(
        enum surface_pixel_format format)
 {
        uint32_t red_xbar = 0, blue_xbar = 0; /* no swap */
-       uint32_t grph_depth, grph_format;
+       uint32_t grph_depth = 0, grph_format = 0;
        uint32_t sign = 0, floating = 0;
 
        if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888 ||