Skip to contentSkip to conversation

drm/msm/dp: Silence inconsistent indent warning

PATCH In review Stephen Boyd 2 participants 2 messages Aug 23, 2022

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

PATCH v2 1/1 drm/msm/dp: Silence inconsistent indent warning

Build robots complain

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

Fix it along with a trailing space from the same commit.

Cc Kuogee Hsieh <[email protected]>
Fixes ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit")

---

Changes from v1 (https://lore.kernel.org/r/[email protected])
* Roll in extra whitespace fix

 drivers/gpu/drm/msm/dp/dp_link.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/msm/dp/dp_link.c +2 -3
index 36f0af02749f..36bb6191d2f0 100644
@@ -786,7 +786,7 @@ static int dp_link_process_link_training_request(struct dp_link_private *link)
 			link->request.test_lane_count);
 
 	link->dp_link.link_params.num_lanes = link->request.test_lane_count;
-	link->dp_link.link_params.rate = 
+	link->dp_link.link_params.rate =
 		drm_dp_bw_code_to_link_rate(link->request.test_link_rate);
 
 	return 0;
@@ -965,8 +965,7 @@ static int dp_link_process_link_status_update(struct dp_link_private *link)
 	if (channel_eq_done && clock_recovery_done)
 		return -EINVAL;
 
-
-       return 0;
+	return 0;
 }
 
 /**

base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868

Signature · 1 line
https://chromeos.dev
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Stephen Boyd

Build robots complain

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

Fix it along with a trailing space from the same commit.

Cc Kuogee Hsieh <[email protected]>
Fixes ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit")
Quoted 33 lines

---

Changes from v1 (https://lore.kernel.org/r/[email protected])
* Roll in extra whitespace fix

  drivers/gpu/drm/msm/dp/dp_link.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/msm/dp/dp_link.c +2 -3
index 36f0af02749f..36bb6191d2f0 100644
@@ -786,7 +786,7 @@ static int dp_link_process_link_training_request(struct dp_link_private *link)
  			link->request.test_lane_count);
 
  	link->dp_link.link_params.num_lanes = link->request.test_lane_count;
-	link->dp_link.link_params.rate =
+	link->dp_link.link_params.rate =
  		drm_dp_bw_code_to_link_rate(link->request.test_link_rate);
 
  	return 0;
@@ -965,8 +965,7 @@ static int dp_link_process_link_status_update(struct dp_link_private *link)
  	if (channel_eq_done && clock_recovery_done)
  		return -EINVAL;
 
-
-       return 0;
+	return 0;
  }
 
  /**

base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868