I noticed this was unneeded while looking over commit
7c33b18807804f
(ofproto-dpif: More efficient implementation of get_odp_port().).
Signed-off-by: Ben Pfaff <blp@nicira.com>
struct ofport_dpif *port;
port = odp_port_to_ofport(ofproto->backer, odp_port);
- if (port && ofproto == ofproto_dpif_cast(port->up.ofproto)) {
+ if (port && &ofproto->up == port->up.ofproto) {
return port->up.ofp_port;
} else {
return OFPP_NONE;