]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:15:18 +0000 (17:15 +0200)
commitcd962806c4493eec8a0da72d1df227dac28d3e15
tree6fe5ff57e579ab2a7edf13b9605788aa93e343ae
parent35519ce7bac9138b00126817c7ddb8f4ebdbc066
netfilter: nftables: remove redundant assignment of variable err

[ Upstream commit 626899a02e6afcd4b2ce5c0551092e3554cec4aa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_cmp.c