diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2011-04-19 17:28:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-20 04:51:03 -0400 |
commit | 0b8f9e25b0aaf5a5d9fd844a97e5c17746b865d4 (patch) | |
tree | cc531084f434bc4602341f3144ee654a9a4af612 /net/sctp/outqueue.c | |
parent | 48669698c23339e0fa31753f04e77648fc210339 (diff) |
sctp: remove completely unsed EMPTY state
SCTP does not SCTP_STATE_EMPTY and we can never be in
that state. Remove useless code.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/outqueue.c')
-rw-r--r-- | net/sctp/outqueue.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 7812772dbf74..3e9d8d2bbe71 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -320,7 +320,6 @@ int sctp_outq_tail(struct sctp_outq *q, struct sctp_chunk *chunk) | |||
320 | * chunk. | 320 | * chunk. |
321 | */ | 321 | */ |
322 | switch (q->asoc->state) { | 322 | switch (q->asoc->state) { |
323 | case SCTP_STATE_EMPTY: | ||
324 | case SCTP_STATE_CLOSED: | 323 | case SCTP_STATE_CLOSED: |
325 | case SCTP_STATE_SHUTDOWN_PENDING: | 324 | case SCTP_STATE_SHUTDOWN_PENDING: |
326 | case SCTP_STATE_SHUTDOWN_SENT: | 325 | case SCTP_STATE_SHUTDOWN_SENT: |