> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of James Zhu > Sent: Wednesday, October 04, 2017 7:34 AM > To: amd-gfx at lists.freedesktop.org > Subject: [PATCH] drm/amdgpu: clear build warning > > 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> Reviewed-by: Alex Deucher <alexander.deucher 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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx