linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] config.c: since dlist is initialized as NULL, remove the useless code
@ 2015-08-27  7:34 Lidong Zhong
  2015-08-27  7:34 ` [PATCH 2/3] policy.c: make it easily understood when comparing the string Lidong Zhong
  2015-08-27  7:34 ` [PATCH 3/3] mdadm: remove duplicate logic when c.delay is 0 Lidong Zhong
  0 siblings, 2 replies; 3+ messages in thread
From: Lidong Zhong @ 2015-08-27  7:34 UTC (permalink / raw)
  To: linux-raid


Signed-off-by: Lidong Zhong <lzhong@suse.com>
---
 config.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/config.c b/config.c
index c58c8fe..bb5af86 100644
--- a/config.c
+++ b/config.c
@@ -941,13 +941,6 @@ struct mddev_dev *conf_get_devs()
 	static struct mddev_dev *dlist = NULL;
 	unsigned int i;
 
-	while (dlist) {
-		struct mddev_dev *t = dlist;
-		dlist = dlist->next;
-		free(t->devname);
-		free(t);
-	}
-
 	load_conffile();
 
 	if (cdevlist == NULL) {
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-27  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27  7:34 [PATCH 1/3] config.c: since dlist is initialized as NULL, remove the useless code Lidong Zhong
2015-08-27  7:34 ` [PATCH 2/3] policy.c: make it easily understood when comparing the string Lidong Zhong
2015-08-27  7:34 ` [PATCH 3/3] mdadm: remove duplicate logic when c.delay is 0 Lidong Zhong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).