diff mbox

[ndctl,9/9] test, libndctl: kill some dead code

Message ID 146698351517.40541.8674344835909731999.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dan Williams June 26, 2016, 11:25 p.m. UTC
check_namespaces() used to do some i/o testing, but that's long since
been replaced.  Clean up some straggling statements.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 test/libndctl.c |    3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/test/libndctl.c b/test/libndctl.c
index 947849d7176b..b03fc27a5f0b 100644
--- a/test/libndctl.c
+++ b/test/libndctl.c
@@ -1460,7 +1460,6 @@  static int check_namespaces(struct ndctl_region *region,
 	ndns_save = NULL;
 	for (i = 0; (namespace = namespaces[i]); i++) {
 		struct ndctl_namespace *ndns;
-		int fd = -1;
 		uuid_t uu;
 
 		snprintf(devname, sizeof(devname), "namespace%d.%d",
@@ -1651,8 +1650,6 @@  static int check_namespaces(struct ndctl_region *region,
 				break;
 			}
 		}
-		if (fd >= 0)
-			close(fd);
 		namespace->do_configure = 0;
 
 		__ndns_save = realloc(ndns_save,