From: Ben Pfaff Date: Fri, 13 Jul 2012 21:30:15 +0000 (-0700) Subject: ofproto-dpif: Remove superfluous cast. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88dbe0f6d797aaf052ca30babfcd369fbff07e99;p=openvswitch ofproto-dpif: Remove superfluous cast. 'packet' is already a struct ofpbuf *. Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 3cc54cff..c50353ed 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -4732,7 +4732,7 @@ send_packet(const struct ofport_dpif *ofport, struct ofpbuf *packet) struct flow flow; int error; - flow_extract((struct ofpbuf *) packet, 0, 0, 0, &flow); + flow_extract(packet, 0, 0, 0, &flow); odp_port = vsp_realdev_to_vlandev(ofproto, ofport->odp_port, flow.vlan_tci); if (odp_port != ofport->odp_port) {