diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-12-29 15:53:28 -0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-29 14:44:03 -0500 |
commit | bfd2e4b8734d34632f00391994b89c558dcb7d4e (patch) | |
tree | a2a06ddee8ec85184793b0a9ba1b80513e4ac420 /net/ipv6/datagram.c | |
parent | 5e4585315b0eb3876f16e85217e9380f37f0dd2c (diff) |
sctp: refactor sctp_datamsg_from_user
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 Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/datagram.c')
0 files changed, 0 insertions, 0 deletions