Re: [PATCH net-next] sctp: refactor sctp_datamsg_from_user

2016-12-29 Thread David Miller
From: Marcelo Ricardo Leitner Date: Thu, 29 Dec 2016 15:53:28 -0200 > This patch refactors sctp_datamsg_from_user() in an attempt to make it > better to read and avoid code duplication for handling the last > fragment. > > It also avoids doing division and remaining operations. Even though, it >

[PATCH net-next] sctp: refactor sctp_datamsg_from_user

2016-12-29 Thread Marcelo Ricardo Leitner
This patch refactors sctp_datamsg_from_user() in an attempt to make it better to read and avoid code duplication for handling the last fragment. It also avoids doing division and remaining operations. Even though, it should still operate similarly as before this patch. Signed-off-by: Marcelo Rica