diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2017-03-24 00:58:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 13:27:19 -0700 |
commit | e013fb7c4c9fa8aa914d85d8b466c990b2eaebb6 (patch) | |
tree | 918d61833c072dd18d934ef353353b77566d2878 /net/core/utils.c | |
parent | 7cc61db9c7e6c985798d5419207fbd8cdb505c7b (diff) | |
download | linux-stable-e013fb7c4c9fa8aa914d85d8b466c990b2eaebb6.tar.gz linux-stable-e013fb7c4c9fa8aa914d85d8b466c990b2eaebb6.tar.bz2 linux-stable-e013fb7c4c9fa8aa914d85d8b466c990b2eaebb6.zip |
net: make in_aton() 32-bit internally
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>
Diffstat (limited to 'net/core/utils.c')
-rw-r--r-- | net/core/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/utils.c b/net/core/utils.c index 6592d7bbed39..d758880c09a7 100644 --- 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; |