Skip to contentSkip to conversation

drm/amd/display: fix coding style

PATCH In review Nirmoy Das 2 participants 2 messages Jun 1, 2021

Subsystems (3)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/amd/display: fix coding style

Fixes 60d198ca66ecf778 ("drm/amd/display: WARN_ON cleanups")

---
Hi Alex,

Can you please squash this with the "Fixes" patch?

Thanks,
Nirmoy

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -2
index 09bbec4dab7c..56abc27b78f7 100644
@@ -315,9 +315,8 @@ get_crtc_by_otg_inst(struct amdgpu_device *adev,
 	struct drm_crtc *crtc;
 	struct amdgpu_crtc *amdgpu_crtc;
 
-	if (WARN_ON(otg_inst == -1)) {
+	if (WARN_ON(otg_inst == -1))
 		return adev->mode_info.crtcs[0];
-	}
 
 	list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
 		amdgpu_crtc = to_amdgpu_crtc(crtc);

--
2.31.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 01.06.21 um 12:13 schrieb Nirmoy Das:

Quoted 3 lines
Fixes 60d198ca66ecf778 ("drm/amd/display: WARN_ON cleanups")
Quoted 4 lines

---
Hi Alex,

Can you please squash this with the "Fixes" patch?

We could keep that separated as well, no big deal.

Christian.

Quoted 23 lines

Thanks,
Nirmoy

  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -3
index 09bbec4dab7c..56abc27b78f7 100644
@@ -315,9 +315,8 @@ get_crtc_by_otg_inst(struct amdgpu_device *adev,
  	struct drm_crtc *crtc;
  	struct amdgpu_crtc *amdgpu_crtc;
 
-	if (WARN_ON(otg_inst == -1)) {
+	if (WARN_ON(otg_inst == -1))
  		return adev->mode_info.crtcs[0];
-	}
 
  	list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
  		amdgpu_crtc = to_amdgpu_crtc(crtc);
--
Quoted 2 lines

2.31.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx