summaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2011-10-05 01:13:17 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-18 22:22:00 +0400
commitbd22c01e845ad22a89ae25005b38d28e6690c27a (patch)
tree8bb242d3df9492277be2e94e91afe8af77086c02 /lib/dynamic_debug.c
parent07613b0b5ef8570033aa806d1731dce599862223 (diff)
downloadlinux-bd22c01e845ad22a89ae25005b38d28e6690c27a.tar.xz
dynamic_debug: remove num_enabled accounting
The num_enabled accounting isn't actually used anywhere - remove them. Signed-off-by: Jason Baron <jbaron@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index ee3b9ba625c5..198d2afe18ed 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -42,7 +42,6 @@ struct ddebug_table {
struct list_head link;
char *mod_name;
unsigned int num_ddebugs;
- unsigned int num_enabled;
struct _ddebug *ddebugs;
};
@@ -152,11 +151,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;
@@ -764,7 +758,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);