diff mbox series

cxl: Fix white space issues in __cxl_coordinates_combine() function

Message ID 20240425170114.843163-1-dave.jiang@intel.com
State New, archived
Headers show
Series cxl: Fix white space issues in __cxl_coordinates_combine() function | expand

Commit Message

Dave Jiang April 25, 2024, 5:01 p.m. UTC
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(-)

Comments

Ira Weiny April 25, 2024, 5:22 p.m. UTC | #1
Dave Jiang wrote:
> Fix excessive indentation in __cxl_coordinates_combine() function.
> 
> Reported-by: Ira Weiny <ira.weiny@intel.com>

Reviewed-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
>
diff mbox series

Patch

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;
 }
 
 /**