Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264881
b: refs/heads/master
c: bd22c01
h: refs/heads/master
i:
  264879: 6688c6a
v: v3
  • Loading branch information
Jason Baron authored and Greg Kroah-Hartman committed Oct 18, 2011
1 parent e3cb731 commit 3f40f20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07613b0b5ef8570033aa806d1731dce599862223
refs/heads/master: bd22c01e845ad22a89ae25005b38d28e6690c27a
7 changes: 0 additions & 7 deletions trunk/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 3f40f20

Please sign in to comment.