dpif-netdev: Avoid pointlessly maintaining a port count.
authorBen Pfaff <blp@nicira.com>
Wed, 10 Aug 2011 19:40:10 +0000 (12:40 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 15 Aug 2011 16:49:15 +0000 (09:49 -0700)
commit4ad2802695284467b559ca6790cd890359ffa159
tree58c22e81c5353b5cc5d2cd185c7f7df40cd80f5a
parenteb9e1c2613587b9b08ca849b6af5ccae2b2d9227
dpif-netdev: Avoid pointlessly maintaining a port count.

'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