mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
minor: mark variable "unused" after assigning it
This commit is contained in:
parent
693a74c286
commit
44068e3109
@ -515,8 +515,6 @@ udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
|
|||||||
#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
|
#endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
|
||||||
struct netif *netif;
|
struct netif *netif;
|
||||||
const ip_addr_t *src_ip_route;
|
const ip_addr_t *src_ip_route;
|
||||||
|
|
||||||
LWIP_UNUSED_ARG(src_ip_route); /* IPv4 only and no source based routing */
|
|
||||||
|
|
||||||
if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) {
|
if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) {
|
||||||
return ERR_VAL;
|
return ERR_VAL;
|
||||||
@ -530,6 +528,7 @@ udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
|
|||||||
} else {
|
} else {
|
||||||
src_ip_route = &pcb->local_ip;
|
src_ip_route = &pcb->local_ip;
|
||||||
}
|
}
|
||||||
|
LWIP_UNUSED_ARG(src_ip_route); /* IPv4 only and no source based routing */
|
||||||
|
|
||||||
#if LWIP_MULTICAST_TX_OPTIONS
|
#if LWIP_MULTICAST_TX_OPTIONS
|
||||||
netif = NULL;
|
netif = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user