]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libceph: use min() to simplify code in ceph_dns_resolve_name()
authorLi Zetao <lizetao1@huawei.com>
Thu, 22 Aug 2024 13:39:04 +0000 (21:39 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Aug 2024 07:30:16 +0000 (09:30 +0200)
commitede0b1d30b82829d6bc7924be18c7ae09cb1eb33
treeaf52a809f33c35e7d2886f439435f4bbd99c6501
parent2015716adbd9cac8505ed461f5f330e832be0c84
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>
net/ceph/messenger.c