summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-03-27 11:53:06 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-03-30 11:29:18 +0200
commitcc07eeb0e5ee18895241460bdccf91a4952731f9 (patch)
treed13f7712413b05a12acdb22967d7c6e422daff1c /net/bridge
parent32537e91847a5686d57d3811c075a46b2d9b6434 (diff)
downloadblackbird-obmc-linux-cc07eeb0e5ee18895241460bdccf91a4952731f9.tar.gz
blackbird-obmc-linux-cc07eeb0e5ee18895241460bdccf91a4952731f9.zip
netfilter: nf_tables: nft_register_chain_type() returns void
Use WARN_ON() instead since it should not happen that neither family goes over NFPROTO_NUMPROTO nor there is already a chain of this type already registered. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/nf_tables_bridge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/netfilter/nf_tables_bridge.c b/net/bridge/netfilter/nf_tables_bridge.c
index 73a1ec556a0a..ffb8580dfdac 100644
--- a/net/bridge/netfilter/nf_tables_bridge.c
+++ b/net/bridge/netfilter/nf_tables_bridge.c
@@ -63,7 +63,9 @@ static const struct nft_chain_type filter_bridge = {
static int __init nf_tables_bridge_init(void)
{
- return nft_register_chain_type(&filter_bridge);
+ nft_register_chain_type(&filter_bridge);
+
+ return 0;
}
static void __exit nf_tables_bridge_exit(void)
OpenPOWER on IntegriCloud