diff options
author | Joe Perches <joe@perches.com> | 2014-12-02 07:29:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 04:28:47 +0300 |
commit | 60c04aecd8a72a84869308bdf2289a7aabb9a88c (patch) | |
tree | d1ab7ab4a17e112d6f27ab5b5268f602cc1be3a1 /net/tipc/name_distr.c | |
parent | b0ba512e25d729a43858ad1f6cb8b94dbb95dbeb (diff) | |
download | linux-60c04aecd8a72a84869308bdf2289a7aabb9a88c.tar.xz |
udp: Neaten and reduce size of compute_score functions
The compute_score functions are a bit difficult to read.
Neaten them a bit to reduce object sizes and make them a
bit more intelligible.
Return early to avoid indentation and avoid unnecessary
initializations.
(allyesconfig, but w/ -O2 and no profiling)
$ size net/ipv[46]/udp.o.*
text data bss dec hex filename
28680 1184 25 29889 74c1 net/ipv4/udp.o.new
28756 1184 25 29965 750d net/ipv4/udp.o.old
17600 1010 2 18612 48b4 net/ipv6/udp.o.new
17632 1010 2 18644 48d4 net/ipv6/udp.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/name_distr.c')
0 files changed, 0 insertions, 0 deletions