diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index ccb0af4..120f8c9 100644 --- a/src/device.c +++ b/src/device.c @@ -116,9 +116,9 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev) } read_lock_bh(&peer->endpoint_lock); - ret = unlikely(peer->endpoint_addr.ss_family != AF_INET && peer->endpoint_addr.ss_family != AF_INET6); + ret = peer->endpoint_addr.ss_family != AF_INET && peer->endpoint_addr.ss_family != AF_INET6; read_unlock_bh(&peer->endpoint_lock); - if (ret) { + if (unlikely(ret)) { net_dbg_ratelimited("No valid endpoint has been configured or discovered for device\n"); peer_put(peer); skb_unsendable(skb, dev); |