]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
remove useless cgroup_rules_loaded
authorIvana Hutarova Varekova <varekova@redhat.com>
Sun, 9 Jun 2013 04:46:09 +0000 (06:46 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Sun, 9 Jun 2013 04:46:09 +0000 (06:46 +0200)
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 <varekova@redhat.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
src/api.c

index c42047503a5ed6e3791dea66fdb74aae577c3518..8e765a9dbd7e254f508b65899cb12345e9246887 100644 (file)
--- 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;