]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nftables: remove redundant assignment of variable err
authorColin Ian King <colin.king@canonical.com>
Thu, 28 Jan 2021 17:59:23 +0000 (17:59 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 6 Feb 2021 01:43:07 +0000 (02:43 +0100)
commit6cb32c6d068a1c26cda674a600c948c921931bcc
tree5245443de566a7b0157961a1eef82a3510411189
parentb05e424698eaef830dbd5a037e7e028ea390c427
netfilter: nftables: remove redundant assignment of variable err

The variable err is being assigned a value that is never read,
the same error number is being returned at the error return
path via label err1.  Clean up the code by removing the assignment.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_cmp.c