From 3f40f20b9f1aae4bab2f9ab4b100dedc55fb2e1d Mon Sep 17 00:00:00 2001 From: Jason Baron Date: Tue, 4 Oct 2011 14:13:17 -0700 Subject: [PATCH] --- yaml --- r: 264881 b: refs/heads/master c: bd22c01e845ad22a89ae25005b38d28e6690c27a h: refs/heads/master i: 264879: 6688c6a4adab16c560006e3b8d5e1cbb0a641757 v: v3 --- [refs] | 2 +- trunk/lib/dynamic_debug.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 89aa9b6c4ef6..b6b3cd42c592 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 07613b0b5ef8570033aa806d1731dce599862223 +refs/heads/master: bd22c01e845ad22a89ae25005b38d28e6690c27a diff --git a/trunk/lib/dynamic_debug.c b/trunk/lib/dynamic_debug.c index ee3b9ba625c5..198d2afe18ed 100644 --- a/trunk/lib/dynamic_debug.c +++ b/trunk/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);