From 2244d1a9877d18bdc42a5204d31f41920d369e87 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 1 Nov 2011 13:30:41 +1100 Subject: Remove duplicated code: search_mdstat and conf_match search_mdstat and conf_match are almost identical. Put all the functionality in conf_match, and remove search_mdstat. Reported-by: Jes.Sorensen@redhat.com Signed-off-by: NeilBrown --- mapfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mapfile.c') diff --git a/mapfile.c b/mapfile.c index 997f0954..0bfecd05 100644 --- a/mapfile.c +++ b/mapfile.c @@ -431,7 +431,9 @@ void RebuildMap(void) * find a unique name based on metadata name. * */ - struct mddev_ident *match = conf_match(info, st); + struct mddev_ident *match = conf_match(st, info, + NULL, 0, + NULL); struct stat stb; if (match && match->devname && match->devname[0] == '/') { path = match->devname; -- cgit v1.2.3