net: sctp: Open out the check for Nagle
authorDavid Laight <David.Laight@ACULAB.COM>
Tue, 22 Jul 2014 08:59:08 +0000 (08:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jul 2014 20:32:10 +0000 (13:32 -0700)
commit723189faca78f2b70fcf9088f056a2440986cc45
tree47b1dc85680d2e48e9a1a13c4bc2bad85c774d08
parent8fd90bb889635fa1e7f80a3950948cc2e74c1446
net: sctp: Open out the check for Nagle

The check for Nagle contains 6 separate checks all of which must be true
before a data packet is delayed.
Separate out each into its own 'if (test) return SCTP_XMIT_OK' so that
the reasons can be individually described.

Also return directly with SCTP_XMIT_RWND_FULL.
Delete the now-unused 'retval' variable and 'finish' label from
sctp_packet_can_append_data().

Signed-off-by: David Laight <david.laight@aculab.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c