aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/openvswitch/actions.c
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2024-08-22 21:39:06 +0800
committerJakub Kicinski <kuba@kernel.org>2024-08-26 09:48:53 -0700
commit26549dab8a4676ce549cb20bf384daf458a9ea24 (patch)
tree2ba4b1a6325134182bd19a88c6cc09043bc42fab /net/openvswitch/actions.c
parentnet: caif: use max() to simplify the code (diff)
downloadwireguard-linux-26549dab8a4676ce549cb20bf384daf458a9ea24.tar.xz
wireguard-linux-26549dab8a4676ce549cb20bf384daf458a9ea24.zip
ipv6: mcast: use min() to simplify the code
When coping sockaddr in ip6_mc_msfget(), the time of copies depends on the minimum value between sl_count and gf_numsrc. Using min() here is very semantic. Signed-off-by: Li Zetao <lizetao1@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240822133908.1042240-7-lizetao1@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/openvswitch/actions.c')
0 files changed, 0 insertions, 0 deletions