ofproto-dpif-xlate: Refactor xlate_table_action() to avoid Clang warnings.
authorBen Pfaff <blp@nicira.com>
Fri, 23 Aug 2013 18:03:55 +0000 (11:03 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 23 Aug 2013 18:04:06 +0000 (11:04 -0700)
commitbb61b33de6d6b8488aabf76419371a13ddecde36
treec7e06fd70c75ff9e2507105aee59897214f44b09
parentff59f2d454eece2b7e04cfbaee59fbcc9ef58e32
ofproto-dpif-xlate: Refactor xlate_table_action() to avoid Clang warnings.

I get a bunch of thread-safety warnings with the latest Clang without this
patch, because Clang is smart enough to see locking and unlocking but not
smart enough to figure out the relationships.  This refactoring avoids the
warnings.

I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1.
I previously used version 1:3.4~svn187484-1~exp1.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/ofproto-dpif-xlate.c