From: Daniel Borkmann Date: Thu, 7 Feb 2013 01:41:39 +0000 (+0000) Subject: net: sctp: sctp_auth_make_key_vector: remove duplicate ntohs calls X-Git-Tag: v3.9-rc1~139^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=241448c2b84ff02a46ce88199e05fdeb55bad449;p=pandora-kernel.git 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 Acked-by: Neil Horman Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed