From 88dbe0f6d797aaf052ca30babfcd369fbff07e99 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 13 Jul 2012 14:30:15 -0700 Subject: [PATCH] ofproto-dpif: Remove superfluous cast. 'packet' is already a struct ofpbuf *. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2