Skip to content

Commit

Permalink
Don't redefine netdev_for_each_mc_addr()
Browse files Browse the repository at this point in the history
It's already defined in CentOS 2.6.18-238.19.1.el5 kernel.  Use
parentheses around dev to be safer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4168 0192ed92-7a03-0410-a25b-9323aeb14dbd
  • Loading branch information
proski committed Oct 7, 2011
1 parent 5890429 commit bd86fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
#ifndef netdev_for_each_mc_addr
#define netdev_for_each_mc_addr(mclist, dev) \
for (mclist = dev->mc_list; mclist; mclist = mclist->next)
for (mclist = (dev)->mc_list; mclist; mclist = mclist->next)
#endif
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
Expand Down

0 comments on commit bd86fad

Please sign in to comment.