diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2007-08-02 11:02:29 +0200 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-08-02 16:56:07 +0200 |
commit | 5f8f1c3c87e44f1bd0180cf19d0e7c83d062b4dc (patch) | |
tree | 8faec795d61c773da558aeed2307cac274b86689 /net | |
parent | SCTP: drop SACK if ctsn is not less than the next tsn of assoc (diff) | |
download | linux-5f8f1c3c87e44f1bd0180cf19d0e7c83d062b4dc.tar.xz linux-5f8f1c3c87e44f1bd0180cf19d0e7c83d062b4dc.zip |
SCTP: remove useless code in function sctp_init_cause
Some code in function sctp_init_cause() seem useless, this patch remove
them.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index ba76ceca2a4e..51c4d7fef1d2 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -113,15 +113,12 @@ void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code, const void *payload, size_t paylen) { sctp_errhdr_t err; - int padlen; __u16 len; /* Cause code constants are now defined in network order. */ err.cause = cause_code; len = sizeof(sctp_errhdr_t) + paylen; - padlen = len % 4; err.length = htons(len); - len += padlen; chunk->subh.err_hdr = sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err); sctp_addto_chunk(chunk, paylen, payload); } |