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/mac-learning.c | |
parent | adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9 (diff) |
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/mac-learning.c')
-rw-r--r-- | lib/mac-learning.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mac-learning.c b/lib/mac-learning.c index c8582f31..36234701 100644 --- a/lib/mac-learning.c +++ b/lib/mac-learning.c @@ -79,7 +79,7 @@ search_bucket(struct list *bucket, const uint8_t mac[ETH_ADDR_LEN], uint16_t vlan) { struct mac_entry *e; - LIST_FOR_EACH (e, struct mac_entry, hash_node, bucket) { + LIST_FOR_EACH (e, hash_node, bucket) { if (eth_addr_equals(e->mac, mac) && e->vlan == vlan) { return e; } |