aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2011-10-04 17:13:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-18 14:22:00 -0400
commitbd22c01e845ad22a89ae25005b38d28e6690c27a (patch)
tree8bb242d3df9492277be2e94e91afe8af77086c02 /lib
parent07613b0b5ef8570033aa806d1731dce599862223 (diff)
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')
-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 {
42 struct list_head link; 42 struct list_head link;
43 char *mod_name; 43 char *mod_name;
44 unsigned int num_ddebugs; 44 unsigned int num_ddebugs;
45 unsigned int num_enabled;
46 struct _ddebug *ddebugs; 45 struct _ddebug *ddebugs;
47}; 46};
48 47
@@ -152,11 +151,6 @@ static void ddebug_change(const struct ddebug_query *query,
152 newflags = (dp->flags & mask) | flags; 151 newflags = (dp->flags & mask) | flags;
153 if (newflags == dp->flags) 152 if (newflags == dp->flags)
154 continue; 153 continue;
155
156 if (!newflags)
157 dt->num_enabled--;
158 else if (!dp->flags)
159 dt->num_enabled++;
160 dp->flags = newflags; 154 dp->flags = newflags;
161 if (newflags) 155 if (newflags)
162 dp->enabled = 1; 156 dp->enabled = 1;
@@ -764,7 +758,6 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n,
764 } 758 }
765 dt->mod_name = new_name; 759 dt->mod_name = new_name;
766 dt->num_ddebugs = n; 760 dt->num_ddebugs = n;
767 dt->num_enabled = 0;
768 dt->ddebugs = tab; 761 dt->ddebugs = tab;
769 762
770 mutex_lock(&ddebug_lock); 763 mutex_lock(&ddebug_lock);