OSDN Git Service

netfilter: nft_set_pipapo: Use struct_size()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 5 May 2023 21:26:34 +0000 (23:26 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 18 May 2023 06:48:55 +0000 (08:48 +0200)
commita2a0ffb0846895923991aa87e022dc228d53c125
treef4dfa592e39bdf1f73e117bf382c1cea3ce73a26
parent61e03e912da8212c3de2529054502e8388dfd484
netfilter: nft_set_pipapo: Use struct_size()

Use struct_size() instead of hand writing it.
This is less verbose and more informative.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_set_pipapo.c