netfilter: nf_tables_offload: fix always true policy is unset check
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Sep 2019 16:33:09 +0000 (18:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Sep 2019 08:20:02 +0000 (10:20 +0200)
commitff175d0b0eab99f512b9afdb571f0ed18b63f533
tree011eb36693f0c1cae2674e0eab033f5e86f00087
parentad652f3811d8644d547506154ec9a9c22c8771cd
netfilter: nf_tables_offload: fix always true policy is unset check

New smatch warnings:
net/netfilter/nf_tables_offload.c:316 nft_flow_offload_chain() warn: always true condition '(policy != -1) => (0-255 != (-1))'

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: c9626a2cbdb2 ("netfilter: nf_tables: add hardware offload support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_offload.c