[PATCH] drm/amdgpu: clear build warning
James Zhu
James.Zhu at amd.com
Wed Oct 4 11:34:25 UTC 2017
Clear build warning: suggest explicit braces to avoid ambiguous
‘else’ [-Wparentheses]. Introduced by commits:
bc0123e4f0d8d072a3144e7662846c5221245dc3
Signed-off-by: James Zhu <James.Zhu at amd.com>
---
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 c217062..60af731 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
@@ -525,11 +525,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
More information about the amd-gfx
mailing list