From 3bf450a661b09871abeec7174adf3ddecf365fad Mon Sep 17 00:00:00 2001 From: James Zhu Date: Wed, 4 Oct 2017 07:29:36 -0400 Subject: [PATCH 1956/4131] drm/amdgpu: clear build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clear build warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]. Introduced by commits: bc0123e4f0d8d072a3144e7662846c5221245dc3 Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index 62ebd71..931ba9e 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c @@ -529,11 +529,12 @@ static int uvd_v6_0_hw_init(void *handle) } done: - if (!r) + if (!r) { if (uvd_v6_0_enc_support(adev)) DRM_INFO("UVD and UVD ENC initialized successfully.\n"); else DRM_INFO("UVD initialized successfully.\n"); + } return r; } -- 2.7.4