summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-10-04 13:54:35 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 16:50:48 -0400
commit4beb50ff5e96014787d8588a78d07e49df0d114a (patch)
tree88d96620c114ed617117b27f8ce14df0581720bd /drivers/gpu/drm/amd/display/dc/dce
parentb0f8d4e963de8cd77c237a8ea37799f6f5ce995a (diff)
downloadblackbird-op-linux-4beb50ff5e96014787d8588a78d07e49df0d114a.tar.gz
blackbird-op-linux-4beb50ff5e96014787d8588a78d07e49df0d114a.zip
drm/amd/display: Fix warning about uninitialized variable
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
index ed301c3b2736..0790f25c7b3b 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
@@ -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 ||
OpenPOWER on IntegriCloud