diff mbox series

[ndctl,v2,1/3] cxl/test: replace spaces with tabs in cxl-xor-region.sh

Message ID 68d36fe3fffca4122bd54757fee546b077a8c1d5.1708650921.git.alison.schofield@intel.com (mailing list archive)
State Accepted
Commit 796e18a330780fc8b852f57c442df944c3aa4d73
Headers show
Series Tidy-up, then expand, cxl-xor-region.sh | expand

Commit Message

Alison Schofield Feb. 23, 2024, 1:40 a.m. UTC
From: Alison Schofield <alison.schofield@intel.com>

Clean up the whitespace to follow ndctl coding style.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
---
 test/cxl-xor-region.sh | 76 +++++++++++++++++++++---------------------
 1 file changed, 38 insertions(+), 38 deletions(-)
diff mbox series

Patch

diff --git a/test/cxl-xor-region.sh b/test/cxl-xor-region.sh
index 117e7a4bba61..5ab7ede11e56 100644
--- a/test/cxl-xor-region.sh
+++ b/test/cxl-xor-region.sh
@@ -35,55 +35,55 @@  create_and_destroy_region()
 
 setup_x1()
 {
-        # Find an x1 decoder
-        decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
-          select(.pmem_capable == true) |
-          select(.nr_targets == 1) |
-          .decoder")
+	# Find an x1 decoder
+	decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
+		select(.pmem_capable == true) |
+		select(.nr_targets == 1) |
+		.decoder")
 
-        # Find a memdev for this host-bridge
-        port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
-            .targets | .[] | select(.position == 0) | .target")
-        mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
-        memdevs="$mem0"
+	# Find a memdev for this host-bridge
+	port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
+		.targets | .[] | select(.position == 0) | .target")
+	mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
+	memdevs="$mem0"
 }
 
 setup_x2()
 {
-        # Find an x2 decoder
-        decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
-          select(.pmem_capable == true) |
-          select(.nr_targets == 2) |
-          .decoder")
+	# Find an x2 decoder
+	decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
+		select(.pmem_capable == true) |
+		select(.nr_targets == 2) |
+		.decoder")
 
-        # Find a memdev for each host-bridge interleave position
-        port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
-            .targets | .[] | select(.position == 0) | .target")
-        port_dev1=$($CXL list -T -d $decoder | jq -r ".[] |
-            .targets | .[] | select(.position == 1) | .target")
-        mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
-        mem1=$($CXL list -M -p $port_dev1 | jq -r ".[0].memdev")
-        memdevs="$mem0 $mem1"
+	# Find a memdev for each host-bridge interleave position
+	port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
+		.targets | .[] | select(.position == 0) | .target")
+	port_dev1=$($CXL list -T -d $decoder | jq -r ".[] |
+		.targets | .[] | select(.position == 1) | .target")
+	mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
+	mem1=$($CXL list -M -p $port_dev1 | jq -r ".[0].memdev")
+	memdevs="$mem0 $mem1"
 }
 
 setup_x4()
 {
-        # find an x2 decoder
-        decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
-          select(.pmem_capable == true) |
-          select(.nr_targets == 2) |
-          .decoder")
+	# find an x2 decoder
+	decoder=$($CXL list -b cxl_test -D -d root | jq -r ".[] |
+		select(.pmem_capable == true) |
+		select(.nr_targets == 2) |
+		.decoder")
 
-        # Find a memdev for each host-bridge interleave position
-        port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
-            .targets | .[] | select(.position == 0) | .target")
-        port_dev1=$($CXL list -T -d $decoder | jq -r ".[] |
-            .targets | .[] | select(.position == 1) | .target")
-        mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
-        mem1=$($CXL list -M -p $port_dev1 | jq -r ".[0].memdev")
-        mem2=$($CXL list -M -p $port_dev0 | jq -r ".[1].memdev")
-        mem3=$($CXL list -M -p $port_dev1 | jq -r ".[1].memdev")
-        memdevs="$mem0 $mem1 $mem2 $mem3"
+	# Find a memdev for each host-bridge interleave position
+	port_dev0=$($CXL list -T -d $decoder | jq -r ".[] |
+		.targets | .[] | select(.position == 0) | .target")
+	port_dev1=$($CXL list -T -d $decoder | jq -r ".[] |
+		.targets | .[] | select(.position == 1) | .target")
+	mem0=$($CXL list -M -p $port_dev0 | jq -r ".[0].memdev")
+	mem1=$($CXL list -M -p $port_dev1 | jq -r ".[0].memdev")
+	mem2=$($CXL list -M -p $port_dev0 | jq -r ".[1].memdev")
+	mem3=$($CXL list -M -p $port_dev1 | jq -r ".[1].memdev")
+	memdevs="$mem0 $mem1 $mem2 $mem3"
 }
 
 setup_x1