sctp: remove unused var from sctp_process_asconf

Assigned but not used.

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>
This commit is contained in:
Marcelo Ricardo Leitner 2017-01-13 18:27:33 -02:00 committed by David S. Miller
parent 57b68ec2a7
commit 11d05ac1df

View file

@ -3210,7 +3210,6 @@ struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc,
union sctp_params param; union sctp_params param;
sctp_addiphdr_t *hdr; sctp_addiphdr_t *hdr;
union sctp_addr_param *addr_param; union sctp_addr_param *addr_param;
sctp_addip_param_t *asconf_param;
struct sctp_chunk *asconf_ack; struct sctp_chunk *asconf_ack;
__be16 err_code; __be16 err_code;
int length = 0; int length = 0;
@ -3230,7 +3229,6 @@ struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc,
* asconf parameter. * asconf parameter.
*/ */
length = ntohs(addr_param->p.length); length = ntohs(addr_param->p.length);
asconf_param = (void *)addr_param + length;
chunk_len -= length; chunk_len -= length;
/* create an ASCONF_ACK chunk. /* create an ASCONF_ACK chunk.