Clear build warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]. Introduced by commits: bc0123e4f0d8d072a3144e7662846c5221245dc3
Signed-off-by: James Zhu <[email protected]> --- 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 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
