netfilter: bitwise: replace hard-coded size with `sizeof` expression
authorJeremy Sowden <jeremy@azazel.net>
Mon, 4 Apr 2022 12:04:14 +0000 (13:04 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 9 Apr 2022 10:02:22 +0000 (12:02 +0200)
commitc70b921fc1e877243f0fb495d18bb884a776b273
tree77ca869e2a7ce34a8ab3e2501425e7054f1d2396
parentc3e348666713bda41c76fb7f2b3606b143421dfd
netfilter: bitwise: replace hard-coded size with `sizeof` expression

When calculating the length of an array, use the appropriate `sizeof`
expression for its type, rather than an integer literal.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_bitwise.c