[DCCP] ackvec: Remove unused variables
Get rid of unused variables in ackvector state. Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e27e4650c
commit
4a0a50fb43
|
@ -142,14 +142,13 @@ struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority)
|
||||||
struct dccp_ackvec *av = kmem_cache_alloc(dccp_ackvec_slab, priority);
|
struct dccp_ackvec *av = kmem_cache_alloc(dccp_ackvec_slab, priority);
|
||||||
|
|
||||||
if (av != NULL) {
|
if (av != NULL) {
|
||||||
av->dccpav_buf_head =
|
av->dccpav_buf_head = DCCP_MAX_ACKVEC_LEN - 1;
|
||||||
av->dccpav_buf_tail = DCCP_MAX_ACKVEC_LEN - 1;
|
|
||||||
av->dccpav_buf_ackno = DCCP_MAX_SEQNO + 1;
|
av->dccpav_buf_ackno = DCCP_MAX_SEQNO + 1;
|
||||||
av->dccpav_buf_nonce = av->dccpav_buf_nonce = 0;
|
av->dccpav_buf_nonce = av->dccpav_buf_nonce = 0;
|
||||||
av->dccpav_ack_ptr = 0;
|
av->dccpav_ack_ptr = 0;
|
||||||
av->dccpav_time.tv_sec = 0;
|
av->dccpav_time.tv_sec = 0;
|
||||||
av->dccpav_time.tv_usec = 0;
|
av->dccpav_time.tv_usec = 0;
|
||||||
av->dccpav_sent_len = av->dccpav_vec_len = 0;
|
av->dccpav_vec_len = 0;
|
||||||
INIT_LIST_HEAD(&av->dccpav_records);
|
INIT_LIST_HEAD(&av->dccpav_records);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,7 @@ struct dccp_ackvec {
|
||||||
struct list_head dccpav_records;
|
struct list_head dccpav_records;
|
||||||
struct timeval dccpav_time;
|
struct timeval dccpav_time;
|
||||||
u8 dccpav_buf_head;
|
u8 dccpav_buf_head;
|
||||||
u8 dccpav_buf_tail;
|
|
||||||
u8 dccpav_ack_ptr;
|
u8 dccpav_ack_ptr;
|
||||||
u8 dccpav_sent_len;
|
|
||||||
u8 dccpav_vec_len;
|
u8 dccpav_vec_len;
|
||||||
u8 dccpav_buf_nonce;
|
u8 dccpav_buf_nonce;
|
||||||
u8 dccpav_ack_nonce;
|
u8 dccpav_ack_nonce;
|
||||||
|
@ -107,7 +105,7 @@ extern int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb);
|
||||||
|
|
||||||
static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
|
static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
|
||||||
{
|
{
|
||||||
return av->dccpav_sent_len != av->dccpav_vec_len;
|
return av->dccpav_vec_len;
|
||||||
}
|
}
|
||||||
#else /* CONFIG_IP_DCCP_ACKVEC */
|
#else /* CONFIG_IP_DCCP_ACKVEC */
|
||||||
static inline int dccp_ackvec_init(void)
|
static inline int dccp_ackvec_init(void)
|
||||||
|
|
Loading…
Reference in a new issue