]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix one warning message
authorJammy Zhou <Jammy.Zhou@amd.com>
Fri, 7 Aug 2015 07:30:44 +0000 (15:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 13:50:18 +0000 (09:50 -0400)
commit59c3e237f8fd4c177cb57ee4765334eb3c1ed44b
treee86471eeeea3e8298961ec3ae370b17d87745fd9
parentc62bdac2057d44ef42f7a823261076fbf23c669c
drm/amdgpu: fix one warning message

In function 'amdgpu_uvd_cs_pass2':
warning: 'min_ctx_size' may be used uninitialized in this function
  buf_sizes[0x4] = min_ctx_size;
                 ^
note: 'min_ctx_size' was declared here
  unsigned image_size, tmp, min_dpb_size, num_dpb_buffer, min_ctx_size;
                                                          ^
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c