mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-09 22:13:23 +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 */
|
||||
if (ip4_addr_isloopback(dest)) {
|
||||
/* 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;
|
||||
}
|
||||
/* default netif is not up, just use any netif for loopback traffic */
|
||||
|
Loading…
x
Reference in New Issue
Block a user