diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2018-01-11 14:22:07 -0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-15 13:59:42 -0500 |
commit | 594831a8aba3fd045c3212a3e3bb9788c77b989d (patch) | |
tree | 2be8bd0a59191a7b820e041d681e5ff0139b114e /net/sctp | |
parent | 28b2e0d2cd132284ad69fcea4b7cf6b7d0662c2f (diff) | |
download | op-kernel-dev-594831a8aba3fd045c3212a3e3bb9788c77b989d.zip op-kernel-dev-594831a8aba3fd045c3212a3e3bb9788c77b989d.tar.gz |
sctp: removed unused var from sctp_make_auth
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index b9b269c..793b05e 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -1276,7 +1276,6 @@ struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc) struct sctp_authhdr auth_hdr; struct sctp_hmac *hmac_desc; struct sctp_chunk *retval; - __u8 *hmac; /* Get the first hmac that the peer told us to use */ hmac_desc = sctp_auth_asoc_get_hmac(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), &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 */ retval->chunk_hdr->length = |