diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c index 06287ac0321115b58f5c2cdbead0b2fc64e54e95..72172514fea063a34ed2e1314d1a996db6a38015 100644 --- a/net/6lowpan/iphc.c +++ b/net/6lowpan/iphc.c @@ -811,8 +811,8 @@ static u8 lowpan_compress_ctx_addr(u8 **hc_ptr, const struct in6_addr *ipaddr, goto out; } - WARN_ON_ONCE("context found but no address mode matched\n"); - return -EINVAL; + WARN_ONCE(1, "context found but no address mode matched\n"); + return LOWPAN_IPHC_DAM_00; out: if (sam)