Skip to contentSkip to conversation

drm/amd/display: Clean up some inconsistent indenting

PATCH Applied Jiapeng Chong 3 participants 3 messages Nov 11, 2021 – Nov 12, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Clean up some inconsistent indenting

Eliminate the follow smatch warning:

drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:622 dmub_srv_cmd_execute() warn: inconsistent indenting.

---
 drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +1 -1
index 56a0332..e9fadf1 100644
@@ -618,8 +618,8 @@ enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub)
 	 * read back stale, fully invalid or partially invalid data.
 	 */
 	dmub_rb_flush_pending(&dmub->inbox1_rb);
+	dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
 
-		dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
 	return DMUB_STATUS_OK;
 }
 
Signature · 1 line
1.8.3.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 11.11.21 um 11:03 schrieb Jiapeng Chong:

Quoted 7 lines

Eliminate the follow smatch warning:

drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:622 dmub_srv_cmd_execute() warn: inconsistent indenting.

Quoted 18 lines
---
  drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +1 -1
index 56a0332..e9fadf1 100644
@@ -618,8 +618,8 @@ enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub)
  	 * read back stale, fully invalid or partially invalid data.
  	 */
  	dmub_rb_flush_pending(&dmub->inbox1_rb);
+	dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
 
-		dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
  	return DMUB_STATUS_OK;
  }
 
Applied
#2 lore raw

Applied. Thanks!

Alex

Quoted 33 lines · Christian König

Am 11.11.21 um 11:03 schrieb Jiapeng Chong:

Quoted 7 lines

Eliminate the follow smatch warning:

drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:622 dmub_srv_cmd_execute() warn: inconsistent indenting.

Quoted 18 lines
---
  drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +1 -1
index 56a0332..e9fadf1 100644
@@ -618,8 +618,8 @@ enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub)
       * read back stale, fully invalid or partially invalid data.
       */
      dmub_rb_flush_pending(&dmub->inbox1_rb);
+     dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
 
-             dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt);
      return DMUB_STATUS_OK;
  }