diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-09-17 10:33:10 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-10-01 10:25:29 -0700 |
| commit | 4e8e4213a815a30216e855a805a8bcd5b8c5a886 (patch) | |
| tree | 38dbb503be4f22ae804f3e5f83459c975d83886a /lib/netdev.c | |
| parent | adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9 (diff) | |
| download | openvswitch-4e8e4213a815a30216e855a805a8bcd5b8c5a886.tar.gz | |
Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.
These macros require one fewer argument by switching, which makes code
that uses them shorter and more readable.
Diffstat (limited to 'lib/netdev.c')
| -rw-r--r-- | lib/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev.c b/lib/netdev.c index d93cabe3b..d516ff21d 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -1591,7 +1591,7 @@ static void close_all_netdevs(void *aux OVS_UNUSED) { struct netdev *netdev, *next; - LIST_FOR_EACH_SAFE(netdev, next, struct netdev, node, &netdev_list) { + LIST_FOR_EACH_SAFE(netdev, next, node, &netdev_list) { netdev_close(netdev); } } |
