net: vlan: Remove useless assert

The assert is not needed and it was in wrong place anyway.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2024-11-26 18:45:02 +02:00 committed by Benjamin Cabé
commit 1e15eec64f

View file

@ -136,7 +136,6 @@ static struct vlan_context *get_vlan_ctx(struct net_if *main_iface,
}
ctx = net_if_get_device(vctx->virtual_iface)->data;
NET_ASSERT(vctx != NULL);
if (any_tag) {
if (ctx->tag != NET_VLAN_TAG_UNSPEC) {