ofproto: New helper any_pending_ops().
authorBen Pfaff <blp@nicira.com>
Wed, 11 Sep 2013 04:44:53 +0000 (21:44 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 04:29:39 +0000 (21:29 -0700)
commit7efced1a26b3ff3e4289cfe8f65480044a9d5bcf
tree46542f691164c19884f8e2f5b54d04ca837b42ac
parent88d4914da1ad3c85416305a9a6e68cc073acd407
ofproto: New helper any_pending_ops().

This function is trivial now but in an upcoming commit it will need to
become slightly more complicated, which makes writing it as a function
worthwhile.

Until then, this commit simplifies the logic, which was redundant since
the 'deletions' hmap always points into the 'pending' list anyway.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto.c