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 <varek...@redhat.com> --- src/api.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/src/api.c b/src/api.c index c420475..8e765a9 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; ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel