net: sctp: sctp_verify_init: clean up mandatory checks and add comment
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 27 Aug 2013 14:53:52 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 19:54:48 +0000 (15:54 -0400)
commit7613f5fe11c518c16b6b50dabb4964052766b73b
treeac0ce10bdf7be547964abc25a91be61e82e36f35
parent95bd09eb27507691520d39ee1044d6ad831c1168
net: sctp: sctp_verify_init: clean up mandatory checks and add comment

Add a comment related to RFC4960 explaning why we do not check for initial
TSN, and while at it, remove yoda notation checks and clean up code from
checks of mandatory conditions. That's probably just really minor, but makes
reviewing easier.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c