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