summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-08-02 08:36:07 -0700
committerBen Pfaff <blp@ovn.org>2017-08-02 15:03:31 -0700
commitb24fa3f486d4061cb9facd181fd6234f281904df (patch)
tree3f97ad4d9c239d7882c87e9fbb9f3d4b7d0ab1c7 /ofproto
parentf3eb7691bfddda35dc65c781de54adf837e8f6b7 (diff)
downloadopenvswitch-b24fa3f486d4061cb9facd181fd6234f281904df.tar.gz
ofproto-dpif-xlate: Eliminate duplicate read of xcfgp.
This inner 'xcfg' shadowed the outer one and could have read a different value if 'xcfgp' was changing, so this is possibly a bug fix. Found by -Wshadow=local in GCC 7. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-xlate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index a2f5dc7df..023dc82a3 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -6679,7 +6679,6 @@ xlate_actions(struct xlate_in *xin, struct xlate_out *xout)
/* Set the bridge for post-recirculation processing if needed. */
if (!uuid_equals(&ctx.xbridge->ofproto->uuid, &state->ofproto_uuid)) {
- struct xlate_cfg *xcfg = ovsrcu_get(struct xlate_cfg *, &xcfgp);
const struct xbridge *new_bridge
= xbridge_lookup_by_uuid(xcfg, &state->ofproto_uuid);