net: use netdev_mc_count and netdev_mc_empty when appropriate
[deliverable/linux.git] / drivers / net / usb / int51x1.c
index 55cf7081de102a953e5e8bb1b33d4a11ed910fb1..9ab5c1983a7dc47aab89b2c6a823e3f5ae35b2bf 100644 (file)
@@ -139,7 +139,7 @@ static void int51x1_set_multicast(struct net_device *netdev)
                /* do not expect to see traffic of other PLCs */
                filter |= PACKET_TYPE_PROMISCUOUS;
                devinfo(dev, "promiscuous mode enabled");
-       } else if (netdev->mc_count ||
+       } else if (!netdev_mc_empty(netdev) ||
                  (netdev->flags & IFF_ALLMULTI)) {
                filter |= PACKET_TYPE_ALL_MULTICAST;
                devdbg(dev, "receive all multicast enabled");
This page took 0.023892 seconds and 5 git commands to generate.