Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Avoid pointlessly maintaining a port count.

2011-08-12 Thread Justin Pettit
Looks good. --Justin On Aug 10, 2011, at 3:05 PM, Ben Pfaff wrote: > 'n_ports' was only used for testing for nonzero, and we can rewrite the > code that does that to more straightforwardly use LIST_FOR_EACH_SAFE. > --- > lib/dpif-netdev.c |9 +++-- > 1 files changed, 3 insertions(+), 6 d

[ovs-dev] [PATCH 1/2] dpif-netdev: Avoid pointlessly maintaining a port count.

2011-08-10 Thread Ben Pfaff
'n_ports' was only used for testing for nonzero, and we can rewrite the code that does that to more straightforwardly use LIST_FOR_EACH_SAFE. --- lib/dpif-netdev.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 9f281c2..