Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215473
b: refs/heads/master
c: f68c530
h: refs/heads/master
i:
  215471: 0f5fa39
v: v3
  • Loading branch information
Changli Gao authored and Patrick McHardy committed Oct 4, 2010
1 parent 85b8699 commit 401210b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 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: e55df53dd62c73185af46fb6ffa7074b05ceefc4
refs/heads/master: f68c53015c5b9aa98ffd87a34009f89bdbbd7160
6 changes: 2 additions & 4 deletions trunk/net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ EXPORT_SYMBOL(nf_register_hooks);

void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n)
{
unsigned int i;

for (i = 0; i < n; i++)
nf_unregister_hook(&reg[i]);
while (n-- > 0)
nf_unregister_hook(&reg[n]);
}
EXPORT_SYMBOL(nf_unregister_hooks);

Expand Down
12 changes: 4 additions & 8 deletions trunk/net/netfilter/x_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ EXPORT_SYMBOL(xt_register_targets);
void
xt_unregister_targets(struct xt_target *target, unsigned int n)
{
unsigned int i;

for (i = 0; i < n; i++)
xt_unregister_target(&target[i]);
while (n-- > 0)
xt_unregister_target(&target[n]);
}
EXPORT_SYMBOL(xt_unregister_targets);

Expand Down Expand Up @@ -174,10 +172,8 @@ EXPORT_SYMBOL(xt_register_matches);
void
xt_unregister_matches(struct xt_match *match, unsigned int n)
{
unsigned int i;

for (i = 0; i < n; i++)
xt_unregister_match(&match[i]);
while (n-- > 0)
xt_unregister_match(&match[n]);
}
EXPORT_SYMBOL(xt_unregister_matches);

Expand Down

0 comments on commit 401210b

Please sign in to comment.