From 5869a76c90aa0725e665d3c7bd6c7ab021d24fd4 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 27 May 2008 09:18:40 +1000 Subject: [PATCH] Remove supertype->devfd It is never used. --- mdadm.h | 1 - mdmon.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mdadm.h b/mdadm.h index 20ed4520..7b11ffb1 100644 --- a/mdadm.h +++ b/mdadm.h @@ -452,7 +452,6 @@ struct supertype { /* extra stuff used by mdmon */ struct active_array *arrays; - int devfd; int sock; /* listen to external programs */ int mgr_pipe[2]; /* communicate between threads */ int mon_pipe[2]; /* communicate between threads */ diff --git a/mdmon.c b/mdmon.c index 7ba8be04..2919a02f 100644 --- a/mdmon.c +++ b/mdmon.c @@ -196,7 +196,6 @@ int main(int argc, char *argv[]) /* hopefully it is a container - we'll check later */ container = malloc(sizeof(*container)); - container->devfd = mdfd; container->devnum = fd2devnum(mdfd); container->devname = devnum2devname(container->devnum); @@ -269,6 +268,7 @@ int main(int argc, char *argv[]) exit(3); } + close(mdfd); mlockall(MCL_FUTURE); -- 2.39.2