提交 9451a304 编写于 作者: F Fabian Frederick 提交者: David S. Miller

ipv6: replace min/casting by min_t

Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6b436d33
......@@ -2315,8 +2315,8 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len, bool sllao)
else
stored_lft = 0;
if (!update_lft && !create && stored_lft) {
const u32 minimum_lft = min(
stored_lft, (u32)MIN_VALID_LIFETIME);
const u32 minimum_lft = min_t(u32,
stored_lft, MIN_VALID_LIFETIME);
valid_lft = max(valid_lft, minimum_lft);
/* RFC4862 Section 5.5.3e:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册