diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-27 11:53:06 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-30 11:29:18 +0200 |
commit | cc07eeb0e5ee18895241460bdccf91a4952731f9 (patch) | |
tree | d13f7712413b05a12acdb22967d7c6e422daff1c /net/ipv4/netfilter/nf_tables_arp.c | |
parent | 32537e91847a5686d57d3811c075a46b2d9b6434 (diff) |
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/ipv4/netfilter/nf_tables_arp.c')
-rw-r--r-- | net/ipv4/netfilter/nf_tables_arp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_tables_arp.c b/net/ipv4/netfilter/nf_tables_arp.c index 5b0be2a10b69..c2ee64208743 100644 --- a/net/ipv4/netfilter/nf_tables_arp.c +++ b/net/ipv4/netfilter/nf_tables_arp.c @@ -42,7 +42,9 @@ static const struct nft_chain_type filter_arp = { static int __init nf_tables_arp_init(void) { - return nft_register_chain_type(&filter_arp); + nft_register_chain_type(&filter_arp); + + return 0; } static void __exit nf_tables_arp_exit(void) |