]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dynamic_debug: remove num_enabled accounting
authorJason Baron <jbaron@redhat.com>
Wed, 28 Sep 2011 00:50:36 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:36 +0000 (14:53 +1000)
The num_enabled accounting isn't actually used anywhere - remove them.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Cc: Greg KH <greg@kroah.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <>
lib/dynamic_debug.c

index 48f3ad1e60bfaa952bc1f47ff5178bc018bf0a1a..6a07c2a9c0afefb79a70075e14159c5e03553d65 100644 (file)
@@ -41,7 +41,6 @@ struct ddebug_table {
        struct list_head link;
        char *mod_name;
        unsigned int num_ddebugs;
-       unsigned int num_enabled;
        struct _ddebug *ddebugs;
 };
 
@@ -151,11 +150,6 @@ static void ddebug_change(const struct ddebug_query *query,
                        newflags = (dp->flags & mask) | flags;
                        if (newflags == dp->flags)
                                continue;
-
-                       if (!newflags)
-                               dt->num_enabled--;
-                       else if (!dp->flags)
-                               dt->num_enabled++;
                        dp->flags = newflags;
                        if (newflags)
                                dp->enabled = 1;
@@ -763,7 +757,6 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n,
        }
        dt->mod_name = new_name;
        dt->num_ddebugs = n;
-       dt->num_enabled = 0;
        dt->ddebugs = tab;
 
        mutex_lock(&ddebug_lock);