diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sctp/command.h | 3 | ||||
-rw-r--r-- | include/net/sctp/sm.h | 8 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index 10ae2da6f93b..4263af857794 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h | |||
@@ -205,12 +205,11 @@ typedef struct { | |||
205 | int sctp_init_cmd_seq(sctp_cmd_seq_t *seq); | 205 | int sctp_init_cmd_seq(sctp_cmd_seq_t *seq); |
206 | 206 | ||
207 | /* Add a command to an sctp_cmd_seq_t. | 207 | /* Add a command to an sctp_cmd_seq_t. |
208 | * Return 0 if the command sequence is full. | ||
209 | * | 208 | * |
210 | * Use the SCTP_* constructors defined by SCTP_ARG_CONSTRUCTOR() above | 209 | * Use the SCTP_* constructors defined by SCTP_ARG_CONSTRUCTOR() above |
211 | * to wrap data which goes in the obj argument. | 210 | * to wrap data which goes in the obj argument. |
212 | */ | 211 | */ |
213 | int sctp_add_cmd(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_arg_t obj); | 212 | void sctp_add_cmd_sf(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_arg_t obj); |
214 | 213 | ||
215 | /* Return the next command structure in an sctp_cmd_seq. | 214 | /* Return the next command structure in an sctp_cmd_seq. |
216 | * Return NULL at the end of the sequence. | 215 | * Return NULL at the end of the sequence. |
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index ef9e7ed2c82e..24811732bdb2 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -385,14 +385,6 @@ static inline int ADDIP_SERIAL_gte(__u16 s, __u16 t) | |||
385 | return (((s) == (t)) || (((t) - (s)) & ADDIP_SERIAL_SIGN_BIT)); | 385 | return (((s) == (t)) || (((t) - (s)) & ADDIP_SERIAL_SIGN_BIT)); |
386 | } | 386 | } |
387 | 387 | ||
388 | |||
389 | /* Run sctp_add_cmd() generating a BUG() if there is a failure. */ | ||
390 | static inline void sctp_add_cmd_sf(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_arg_t obj) | ||
391 | { | ||
392 | if (unlikely(!sctp_add_cmd(seq, verb, obj))) | ||
393 | BUG(); | ||
394 | } | ||
395 | |||
396 | /* Check VTAG of the packet matches the sender's own tag. */ | 388 | /* Check VTAG of the packet matches the sender's own tag. */ |
397 | static inline int | 389 | static inline int |
398 | sctp_vtag_verify(const struct sctp_chunk *chunk, | 390 | sctp_vtag_verify(const struct sctp_chunk *chunk, |