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
>
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