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 00:44:53 +0000 (17:44 -0700)
commit06b79a9a0d00293bce922ed7ba14d2159fe923e9
treea1476ecc45ad80e59f4d9757a5a2c10a9f464e0f
parent49a0e0eb3f85502ae6bc91151e345e67eb79314c
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