diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-07-10 18:13:58 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-07-15 17:51:43 +0200 |
commit | 4c0911566dec7755d15cb89239fb2db4447f7a62 (patch) | |
tree | 73aab52ccf78e2b1592c335b69bed499aea6fa93 /ipc | |
parent | 70aa996601335ca3069190ebcdae8870828086a8 (diff) |
netfilter: Simply the tests for enabling and disabling the ingress queue hook
Replace an overcomplicated switch statement with a simple if statement.
This also removes the ingress queue enable outside of nf_hook_mutex as
the protection provided by the mutex is not necessary and the code is
clearer having both of the static key increments together.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions