Don't redefine netdev_for_each_mc_addr()
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 7 Oct 2011 21:14:47 +0000 (21:14 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 7 Oct 2011 21:14:47 +0000 (21:14 +0000)
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

include/compat.h

index 5e6d569ee963623e55eb8596a73f43cf47afca3e..c29f57ab279caf37aa842f94e7bc818a9aaa763a 100644 (file)
 #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)