From 449fc98a553a3d8ba502db25c15ba585fdcb682e Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 20 Mar 2016 11:06:39 +0800 Subject: [PATCH] tcp_alloc(): Remove superfluous initialization for pcb->keep_cnt_sent It's already done by memset(0). This was missed in commit 5794ac2340f2 "tcp_alloc(): remove explicit =0 already done by memset(0)", fix it. Signed-off-by: Axel Lin --- src/core/tcp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index 27af755a..145dbcd3 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -1530,7 +1530,6 @@ tcp_alloc(u8_t prio) pcb->tmr = tcp_ticks; pcb->last_timer = tcp_timer_ctr; - #if LWIP_CALLBACK_API pcb->recv = tcp_recv_null; #endif /* LWIP_CALLBACK_API */ @@ -1542,8 +1541,6 @@ tcp_alloc(u8_t prio) pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT; pcb->keep_cnt = TCP_KEEPCNT_DEFAULT; #endif /* LWIP_TCP_KEEPALIVE */ - - pcb->keep_cnt_sent = 0; } return pcb; }