ovs-router: fix router entry cast
The offsetof(struct ovs_router_entry, cr) should always be 0,
thus the else statement should never be reached.
@@ -68,12 +68,8 @@ struct ovs_router_entry {
static struct ovs_router_entry *
ovs_router_entry_cast(const struct cls_rule *cr)
{
- if (offsetof(struct ovs_router_entry, cr) == 0) {
- return CONTAINER_OF(cr, struct ovs_router_entry, cr);
- } else {
return cr ? CONTAINER_OF(cr, struct ovs_router_entry, cr) : NULL;
}
-}
static bool
ovs_router_lookup_fallback(const struct in6_addr *ip6_dst, char output_bridge[],
