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 <[email protected]>
---
 test/libndctl.c |    3 ---
 1 file changed, 3 deletions(-)

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,

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to