summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:40 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:40 +1000
commit5869a76c90aa0725e665d3c7bd6c7ab021d24fd4 (patch)
tree2fa5e7d3562a03e669d619d5a1af6f61477025c3
parent1ed3f38758ff23dabfa3f67e2a02ff98d9d0fea8 (diff)
downloadmdadm-5869a76c90aa0725e665d3c7bd6c7ab021d24fd4.tar.gz
mdadm-5869a76c90aa0725e665d3c7bd6c7ab021d24fd4.tar.xz
mdadm-5869a76c90aa0725e665d3c7bd6c7ab021d24fd4.zip
Remove supertype->devfd
It is never used.
-rw-r--r--mdadm.h1
-rw-r--r--mdmon.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/mdadm.h b/mdadm.h
index 20ed452..7b11ffb 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 7ba8be0..2919a02 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);