projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b436d3
)
ipv6: replace min/casting by min_t
author
Fabian Frederick
<fabf@skynet.be>
Mon, 27 Oct 2014 18:11:56 +0000
(19:11 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Oct 2014 20:03:52 +0000
(16:03 -0400)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 725c763270a067e3945ec3056c4f5893cf9f7060..50b95b2db87c2887314076dcad3a0d64b10ffda1 100644
(file)
--- 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: