diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-27 19:11:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-27 21:03:52 +0100 |
commit | 9451a304ceeb96c45f91f88f2caa7364f5cee087 (patch) | |
tree | af1ffc38684545b81218533bff1c9e680c7c2af5 /net/ipv6 | |
parent | ipv4: remove set but unused variable sha (diff) | |
download | linux-9451a304ceeb96c45f91f88f2caa7364f5cee087.tar.xz linux-9451a304ceeb96c45f91f88f2caa7364f5cee087.zip |
ipv6: replace min/casting by min_t
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 725c763270a0..50b95b2db87c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2315,8 +2315,8 @@ ok: 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: |