]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: openvswitch: Use struct_size()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 14 Oct 2023 06:34:52 +0000 (08:34 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Oct 2023 11:56:03 +0000 (13:56 +0200)
commitdf3bf90fef281c630ef06a3d03efb9fe56c8a0fb
treec2b5ae2106b37b40dee2f3b511bb0978a357e127
parent53c6b86cd084c777175b66012d33b519c81d7b0b
net: openvswitch: Use struct_size()

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/e5122b4ff878cbf3ed72653a395ad5c4da04dc1e.1697264974.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/openvswitch/flow_table.c