sctp: removed unused var from sctp_make_auth
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 11 Jan 2018 16:22:07 +0000 (14:22 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 18:59:42 +0000 (13:59 -0500)
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>
net/sctp/sm_make_chunk.c

index b9b269c..793b05e 100644 (file)
@@ -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 =