sctp: several declared/set but unused fixes
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e143038f4d
commit
efea2c6b2e
@@ -3375,7 +3375,6 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc,
|
||||
struct sctp_fwdtsn_skip *skiplist)
|
||||
{
|
||||
struct sctp_chunk *retval = NULL;
|
||||
struct sctp_fwdtsn_chunk *ftsn_chunk;
|
||||
struct sctp_fwdtsn_hdr ftsn_hdr;
|
||||
struct sctp_fwdtsn_skip skip;
|
||||
size_t hint;
|
||||
@@ -3388,8 +3387,6 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc,
|
||||
if (!retval)
|
||||
return NULL;
|
||||
|
||||
ftsn_chunk = (struct sctp_fwdtsn_chunk *)retval->subh.fwdtsn_hdr;
|
||||
|
||||
ftsn_hdr.new_cum_tsn = htonl(new_cum_tsn);
|
||||
retval->subh.fwdtsn_hdr =
|
||||
sctp_addto_chunk(retval, sizeof(ftsn_hdr), &ftsn_hdr);
|
||||
|
Reference in New Issue
Block a user