Skip to content

Commit

Permalink
ipv6: replace min/casting by min_t
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Oct 27, 2014
1 parent 6b436d3 commit 9451a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9451a30

Please sign in to comment.