aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2013-02-07 01:41:39 +0000
committerDavid S. Miller <[email protected]>2013-02-08 04:44:37 +0000
commit241448c2b84ff02a46ce88199e05fdeb55bad449 (patch)
tree41ae60dff8ed4f72657271892dd618754cc3e78a /drivers/net/xen-netback/interface.c
parentnet: fec: fix spin_lock dead lock (diff)
downloadkernel-241448c2b84ff02a46ce88199e05fdeb55bad449.tar.gz
kernel-241448c2b84ff02a46ce88199e05fdeb55bad449.zip
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 <[email protected]> Acked-by: Neil Horman <[email protected]> Acked-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions