netfilter: Clean up unnecessary #ifdef
authorLukas Wunner <lukas@wunner.de>
Wed, 20 Nov 2019 11:33:59 +0000 (12:33 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Dec 2019 21:58:23 +0000 (22:58 +0100)
commit871185ace40df871a93866b2a7ce441276fc4ee8
tree2664c98c9a8a6647ceb6c5742f85eaff3d27069a
parent6f6dded1385cfb564de85f86126f1c054c8f47b1
netfilter: Clean up unnecessary #ifdef

If CONFIG_NETFILTER_INGRESS is not enabled, nf_ingress() becomes a no-op
because it solely contains an if-clause calling nf_hook_ingress_active(),
for which an empty inline stub exists in <linux/netfilter_ingress.h>.

All the symbols used in the if-clause's body are still available even if
CONFIG_NETFILTER_INGRESS is not enabled.

The additional "#ifdef CONFIG_NETFILTER_INGRESS" in nf_ingress() is thus
unnecessary, so drop it.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/core/dev.c