net: openvswitch: Use struct_size()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 6 May 2023 16:04:16 +0000 (18:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 May 2023 04:25:46 +0000 (21:25 -0700)
commitb50a8b0d57ab1ef11492171e98a030f48682eac3
tree320099894dc59459bc237e67e9473d059d57f18f
parentb1cf7a5615157e958c2bdac9aa981676c07a10d9
net: openvswitch: 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>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Link: https://lore.kernel.org/r/e7746fbbd62371d286081d5266e88bbe8d3fe9f0.1683388991.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/meter.c