net: sctp: sctp_auth_make_key_vector: remove duplicate ntohs calls
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 7 Feb 2013 01:41:39 +0000 (01:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:44:37 +0000 (23:44 -0500)
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>

No differences found