tcp_alloc(): Remove superfluous initialization for pcb->keep_cnt_sent

It's already done by memset(0). This was missed in commit 5794ac2340
"tcp_alloc(): remove explicit =0 already done by memset(0)", fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2016-03-20 11:06:39 +08:00 committed by goldsimon
parent 7e7f2f31ff
commit 449fc98a55

View File

@ -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;
}