mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
ipv6: replace min/casting by min_t
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6b436d3381
commit
9451a304ce
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user