Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl: Fix white space issues in __cxl_coordinates_combine() function
@ 2024-04-25 17:01 Dave Jiang
  2024-04-25 17:22 ` Ira Weiny
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Jiang @ 2024-04-25 17:01 UTC (permalink / raw)
  To: linux-cxl
  Cc: dave, jonathan.cameron, alison.schofield, vishal.l.verma,
	ira.weiny, dan.j.williams

Fix excessive indentation in __cxl_coordinates_combine() function.

Reported-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 drivers/cxl/core/cdat.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/cxl/core/cdat.c b/drivers/cxl/core/cdat.c
index bb83867d9fec..210a66743c38 100644
--- a/drivers/cxl/core/cdat.c
+++ b/drivers/cxl/core/cdat.c
@@ -518,15 +518,15 @@ static void __cxl_coordinates_combine(struct access_coordinate *out,
 				      struct access_coordinate *c1,
 				      struct access_coordinate *c2)
 {
-		if (c1->write_bandwidth && c2->write_bandwidth)
-			out->write_bandwidth = min(c1->write_bandwidth,
-						   c2->write_bandwidth);
-		out->write_latency = c1->write_latency + c2->write_latency;
+	if (c1->write_bandwidth && c2->write_bandwidth)
+		out->write_bandwidth = min(c1->write_bandwidth,
+					   c2->write_bandwidth);
+	out->write_latency = c1->write_latency + c2->write_latency;
 
-		if (c1->read_bandwidth && c2->read_bandwidth)
-			out->read_bandwidth = min(c1->read_bandwidth,
-						  c2->read_bandwidth);
-		out->read_latency = c1->read_latency + c2->read_latency;
+	if (c1->read_bandwidth && c2->read_bandwidth)
+		out->read_bandwidth = min(c1->read_bandwidth,
+					  c2->read_bandwidth);
+	out->read_latency = c1->read_latency + c2->read_latency;
 }
 
 /**
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-25 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 17:01 [PATCH] cxl: Fix white space issues in __cxl_coordinates_combine() function Dave Jiang
2024-04-25 17:22 ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox