net: Fix call to ->change_rx_flags(dev, IFF_MULTICAST) in dev_change_flags()

Am I just being particularly dim today, or can the call to
dev->change_rx_flags(dev, IFF_MULTICAST) in dev_change_flags() never
happen?

We've just set dev->flags = flags & IFF_MULTICAST, effectively. So the
condition '(dev->flags ^ flags) & IFF_MULTICAST' is _never_ going to be
true.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David Woodhouse and committed by
David S. Miller
0e91796e f2df8249

+1 -1
+1 -1
net/core/dev.c
··· 3141 * Load in the correct multicast list now the flags have changed. 3142 */ 3143 3144 - if (dev->change_rx_flags && (dev->flags ^ flags) & IFF_MULTICAST) 3145 dev->change_rx_flags(dev, IFF_MULTICAST); 3146 3147 dev_set_rx_mode(dev);
··· 3141 * Load in the correct multicast list now the flags have changed. 3142 */ 3143 3144 + if (dev->change_rx_flags && (old_flags ^ flags) & IFF_MULTICAST) 3145 dev->change_rx_flags(dev, IFF_MULTICAST); 3146 3147 dev_set_rx_mode(dev);