[PATCH] drm/amdgpu: clear build warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux