Merge branch 'sctp-unify-sctp_make_op_error_fixed-and-sctp_make_op_error_space'
authorDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 16:09:36 +0000 (12:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 16:09:36 +0000 (12:09 -0400)
commit9908b3630f203e983ea02caf5f680ff18d8d82c4
tree2945708f1ade9682bea346649ebe30ca77b9c165
parent065662d941cb85449985d9b5a7cd1cc49676cc79
parent8914f4bace3f3a56f14accb45f9f4b9456670b4a
Merge branch 'sctp-unify-sctp_make_op_error_fixed-and-sctp_make_op_error_space'

Marcelo Ricardo Leitner says:

====================
sctp: unify sctp_make_op_error_fixed and sctp_make_op_error_space

These two variants are very close to each other and can be merged
to avoid code duplication. That's what this patchset does.

First, we allow sctp_init_cause to return errors, which then allow us to
add sctp_make_op_error_limited that handles both situations.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>