projects
/
GitHub
/
moto-9609
/
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:
7cc61db
)
net: make in_aton() 32-bit internally
author
Alexey Dobriyan
<adobriyan@gmail.com>
Thu, 23 Mar 2017 21:58:26 +0000
(
00:58
+0300)
committer
David S. Miller
<davem@davemloft.net>
Fri, 24 Mar 2017 20:27:19 +0000
(13:27 -0700)
Converting IPv4 address doesn't need 64-bit arithmetic.
Space savings: 10 bytes!
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10)
function old new delta
in_aton 96 86 -10
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/utils.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/utils.c
b/net/core/utils.c
index 6592d7bbed394086a8ba8efcb370fb1d75db4449..d758880c09a73ee07fe406f42fd934eae0b300d0 100644
(file)
--- a/
net/core/utils.c
+++ b/
net/core/utils.c
@@
-51,7
+51,7
@@
EXPORT_SYMBOL(net_ratelimit);
__be32 in_aton(const char *str)
{
- unsigned
long
l;
+ unsigned
int
l;
unsigned int val;
int i;