Skip to content

Commit

Permalink
dynamic_debug: remove num_enabled accounting
Browse files Browse the repository at this point in the history
The num_enabled accounting isn't actually used anywhere - remove them.

Signed-off-by: Jason Baron <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jibaron authored and gregkh committed Oct 18, 2011
1 parent 07613b0 commit bd22c01
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bd22c01

Please sign in to comment.