]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: cttimeout: remove 'l3num' attr check
authorLin Ma <linma@zju.edu.cn>
Fri, 31 May 2024 01:28:47 +0000 (09:28 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 25 Jun 2024 22:54:53 +0000 (00:54 +0200)
commitfe87a8deaad46c9a45381624f7e5f2f4fd145721
tree44bd0bbe3d217b3df8f5da0b4fee88adeccc55f1
parent0b88d1654d556264bcd24a9cb6383f0888e30131
netfilter: cttimeout: remove 'l3num' attr check

After commit dd2934a95701 ("netfilter: conntrack: remove l3->l4 mapping
information"), the attribute of type `CTA_TIMEOUT_L3PROTO` is not used
any more in function cttimeout_default_set.

However, the previous commit ea9cf2a55a7b ("netfilter: cttimeout: remove
set but not used variable 'l3num'") forgot to remove the attribute
present check when removing the related variable.

This commit removes that check to ensure consistency.

Signed-off-by: Lin Ma <linma@zju.edu.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_cttimeout.c