]> git.karo-electronics.de Git - linux-beck.git/commit
net: sctp: Inline the functions from command.c
authorDavid Laight <David.Laight@ACULAB.COM>
Fri, 4 Jul 2014 14:35:51 +0000 (14:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 21:38:48 +0000 (14:38 -0700)
commitbe1f4f48cef17c6ea9350db04c774dc8eb252158
tree64352a351a16a0ff3eb9bdbe850f68868d5dd263
parent63ae88949bc7f6b56438d430c55060d9eda981af
net: sctp: Inline the functions from command.c

sctp_init_cmd_seq() and sctp_next_cmd() are only called from one place.
The call sequence for sctp_add_cmd_sf() is likely to be longer than
the inlined code.
With sctp_add_cmd_sf() inlined the compiler can optimise repeated calls.

Signed-off-by: David Laight <david.laight@aculab.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/command.h
net/sctp/Makefile
net/sctp/command.c [deleted file]