diff options
| author | Sridhar Samudrala <sri@us.ibm.com> | 2004-12-26 18:51:01 -0800 |
|---|---|---|
| committer | Sridhar Samudrala <sri@us.ibm.com> | 2004-12-26 18:51:01 -0800 |
| commit | 3da25caccc4e293aada9c1f7130a98be64907c77 (patch) | |
| tree | 758a789fdc0b72c7081331756d1c8f209f661cfb /net/sctp/command.c | |
| parent | feca988507f3e9b5cc27051197e890d9bbadc513 (diff) | |
[SCTP] Code cleanup: remove unused code and make needlessly global code static
Signed-off-by: Adrian Bunk <bunk@stutsa.de>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Diffstat (limited to 'net/sctp/command.c')
| -rw-r--r-- | net/sctp/command.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/sctp/command.c b/net/sctp/command.c index 637fadee95a8..3ff804757f4a 100644 --- a/net/sctp/command.c +++ b/net/sctp/command.c @@ -42,17 +42,6 @@ #include <net/sctp/sctp.h> #include <net/sctp/sm.h> -/* Create a new sctp_command_sequence. */ -sctp_cmd_seq_t *sctp_new_cmd_seq(int gfp) -{ - sctp_cmd_seq_t *retval = t_new(sctp_cmd_seq_t, gfp); - - if (retval) - sctp_init_cmd_seq(retval); - - return retval; -} - /* Initialize a block of memory as a command sequence. */ int sctp_init_cmd_seq(sctp_cmd_seq_t *seq) { @@ -77,13 +66,6 @@ fail: return 0; } -/* Rewind an sctp_cmd_seq_t to iterate from the start. */ -int sctp_rewind_sequence(sctp_cmd_seq_t *seq) -{ - seq->next_cmd = 0; - return 1; /* We always succeed. */ -} - /* Return the next command structure in a sctp_cmd_seq. * Returns NULL at the end of the sequence. */ @@ -97,8 +79,3 @@ sctp_cmd_t *sctp_next_cmd(sctp_cmd_seq_t *seq) return retval; } -/* Dispose of a command sequence. */ -void sctp_free_cmd_seq(sctp_cmd_seq_t *seq) -{ - kfree(seq); -} |
