提交 594831a8 编写于 作者: M Marcelo Ricardo Leitner 提交者: David S. Miller

sctp: removed unused var from sctp_make_auth

Signed-off-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: NNeil Horman <nhorman@tuxdriver.com>
Reviewed-by: NXin Long <lucien.xin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 28b2e0d2
...@@ -1276,7 +1276,6 @@ struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc) ...@@ -1276,7 +1276,6 @@ struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc)
struct sctp_authhdr auth_hdr; struct sctp_authhdr auth_hdr;
struct sctp_hmac *hmac_desc; struct sctp_hmac *hmac_desc;
struct sctp_chunk *retval; struct sctp_chunk *retval;
__u8 *hmac;
/* Get the first hmac that the peer told us to use */ /* Get the first hmac that the peer told us to use */
hmac_desc = sctp_auth_asoc_get_hmac(asoc); hmac_desc = sctp_auth_asoc_get_hmac(asoc);
...@@ -1295,7 +1294,7 @@ struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc) ...@@ -1295,7 +1294,7 @@ struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc)
retval->subh.auth_hdr = sctp_addto_chunk(retval, sizeof(auth_hdr), retval->subh.auth_hdr = sctp_addto_chunk(retval, sizeof(auth_hdr),
&auth_hdr); &auth_hdr);
hmac = skb_put_zero(retval->skb, hmac_desc->hmac_len); skb_put_zero(retval->skb, hmac_desc->hmac_len);
/* Adjust the chunk header to include the empty MAC */ /* Adjust the chunk header to include the empty MAC */
retval->chunk_hdr->length = retval->chunk_hdr->length =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册