Skip to contentSkip to conversation

test: Remove a redundant ndctl_namespace_foreach

PATCH In review Santosh Sivaraj 2 participants 2 messages Aug 6, 2020 – Aug 7, 2020 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Remove a redundant ndctl_namespace_foreach

I don't think this was intended to be in the code.

---
 test/multi-pmem.c | 1 -
 1 file changed, 1 deletion(-)
test/multi-pmem.c +0 -1
index 668662c..cb7cd40 100644
@@ -162,7 +162,6 @@ static int do_multi_pmem(struct ndctl_ctx *ctx, struct ndctl_test *test)
 		char uuid_str1[40], uuid_str2[40];
 		uuid_t uuid_check;
 
-		ndctl_namespace_foreach(region, ndns)
 		sprintf(devname, "namespace%d.%d",
 				ndctl_region_get_id(region), i);
 		ndctl_namespace_foreach(region, ndns)
Signature · 4 lines
2.26.2
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Santosh Sivaraj

I don't think this was intended to be in the code.

Quoted 21 lines
---
 test/multi-pmem.c | 1 -
 1 file changed, 1 deletion(-)
test/multi-pmem.c +0 -1
index 668662c..cb7cd40 100644
@@ -162,7 +162,6 @@ static int do_multi_pmem(struct ndctl_ctx *ctx, struct ndctl_test *test)
 		char uuid_str1[40], uuid_str2[40];
 		uuid_t uuid_check;
 
-		ndctl_namespace_foreach(region, ndns)
 		sprintf(devname, "namespace%d.%d",
 				ndctl_region_get_id(region), i);
 		ndctl_namespace_foreach(region, ndns)
Signature · 4 lines
2.26.2
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

_______________________________________________
Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]