mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 06:35:57 +00:00
Minor: add parenthesis for cleaner code
This commit is contained in:
parent
5698e57da3
commit
26a84d9307
|
@ -187,7 +187,7 @@ ip4_route(const ip4_addr_t *dest)
|
||||||
/* loopif is disabled, looopback traffic is passed through any netif */
|
/* loopif is disabled, looopback traffic is passed through any netif */
|
||||||
if (ip4_addr_isloopback(dest)) {
|
if (ip4_addr_isloopback(dest)) {
|
||||||
/* don't check for link on loopback traffic */
|
/* don't check for link on loopback traffic */
|
||||||
if (netif_default != NULL && netif_is_up(netif_default)) {
|
if ((netif_default != NULL) && netif_is_up(netif_default)) {
|
||||||
return netif_default;
|
return netif_default;
|
||||||
}
|
}
|
||||||
/* default netif is not up, just use any netif for loopback traffic */
|
/* default netif is not up, just use any netif for loopback traffic */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user