From ff0c584eb72418efe34090310188dd7948e37e65 Mon Sep 17 00:00:00 2001 From: Jason Baron Date: Wed, 5 Oct 2011 11:43:25 +1100 Subject: [PATCH] dynamic_debug: remove num_enabled accounting The num_enabled accounting isn't actually used anywhere - remove them. Signed-off-by: Jason Baron Cc: Greg KH Cc: Arnd Bergmann Signed-off-by: Andrew Morton --- lib/dynamic_debug.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 48f3ad1e60bf..6a07c2a9c0af 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -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); -- 2.39.5