From: Ivana Hutarova Varekova Date: Sun, 9 Jun 2013 04:46:09 +0000 (+0200) Subject: remove useless cgroup_rules_loaded X-Git-Tag: v0.41~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf383493da85479f9b783decc05b9296c45f64ff;p=thirdparty%2Flibcgroup.git remove useless cgroup_rules_loaded I don't see the reason to have cgroup_rules_loaded variable. It is set but not used any more. Thus I'm removing it. Reply an e-mail if I'm wrong. Signed-off-by: Ivana Hutarova Varekova Acked-by: Jan Safranek --- diff --git a/src/api.c b/src/api.c index c4204750..8e765a9d 100644 --- a/src/api.c +++ b/src/api.c @@ -66,9 +66,6 @@ static __thread char errtext[MAXLEN]; /* Check if cgroup_init has been called or not. */ static int cgroup_initialized; -/* Check if the rules cache has been loaded or not. */ -static bool cgroup_rules_loaded; - /* List of configuration rules */ static struct cgroup_rule_list rl; @@ -3238,9 +3235,6 @@ int cgroup_init_rules_cache(void) if (ret) { cgroup_dbg("Could not initialize rule cache, error was: %d\n", ret); - cgroup_rules_loaded = false; - } else { - cgroup_rules_loaded = true; } return ret;