aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2024-08-22 21:39:04 +0800
committerIlya Dryomov <idryomov@gmail.com>2024-08-27 09:30:16 +0200
commitede0b1d30b82829d6bc7924be18c7ae09cb1eb33 (patch)
treeaf52a809f33c35e7d2886f439435f4bbd99c6501 /tools/perf/scripts/python
parent2015716adbd9cac8505ed461f5f330e832be0c84 (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 <lizetao1@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions