commit | 241448c2b84ff02a46ce88199e05fdeb55bad449 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <dborkman@redhat.com> | Thu Feb 07 01:41:39 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 07 23:44:37 2013 -0500 |
tree | 41ae60dff8ed4f72657271892dd618754cc3e78a | |
parent | 85bd1798b24a13462d7b064961e7a9da3bb12db1 [diff] |
net: sctp: sctp_auth_make_key_vector: remove duplicate ntohs calls Instead of calling 3 times ntohs(random->param_hdr.length), 2 times ntohs(hmacs->param_hdr.length), and 3 times ntohs(chunks->param_hdr.length) within the same function, we only call each once and store it in a variable. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>