mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-05 06:39:52 +00:00
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 <axel.lin@ingics.com>
This commit is contained in:
parent
7e7f2f31ff
commit
449fc98a55
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user