diff options
author | Li Zetao <[email protected]> | 2024-08-22 21:39:04 +0800 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2024-08-27 09:30:16 +0200 |
commit | ede0b1d30b82829d6bc7924be18c7ae09cb1eb33 (patch) | |
tree | af52a809f33c35e7d2886f439435f4bbd99c6501 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 2015716adbd9cac8505ed461f5f330e832be0c84 (diff) |
libceph: use min() to simplify code in ceph_dns_resolve_name()
When resolving name in ceph_dns_resolve_name(), the end address of name
is determined by the minimum value of delim_p and colon_p. So using min()
here is more in line with the context.
Signed-off-by: Li Zetao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions