net/irda: fixed style issues in irlan_eth
Applied fixes suggested by checkpatch.pl Signed-off-by: Dragos Foianu <dragos.foianu@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8a73125c36
commit
b6a82dd233
1 changed files with 14 additions and 17 deletions
|
@ -321,23 +321,20 @@ static void irlan_eth_set_multicast_list(struct net_device *dev)
|
||||||
if (dev->flags & IFF_PROMISC) {
|
if (dev->flags & IFF_PROMISC) {
|
||||||
/* Enable promiscuous mode */
|
/* Enable promiscuous mode */
|
||||||
IRDA_WARNING("Promiscuous mode not implemented by IrLAN!\n");
|
IRDA_WARNING("Promiscuous mode not implemented by IrLAN!\n");
|
||||||
}
|
} else if ((dev->flags & IFF_ALLMULTI) ||
|
||||||
else if ((dev->flags & IFF_ALLMULTI) ||
|
|
||||||
netdev_mc_count(dev) > HW_MAX_ADDRS) {
|
netdev_mc_count(dev) > HW_MAX_ADDRS) {
|
||||||
/* Disable promiscuous mode, use normal mode. */
|
/* Disable promiscuous mode, use normal mode. */
|
||||||
IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__);
|
IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__);
|
||||||
/* hardware_set_filter(NULL); */
|
/* hardware_set_filter(NULL); */
|
||||||
|
|
||||||
irlan_set_multicast_filter(self, TRUE);
|
irlan_set_multicast_filter(self, TRUE);
|
||||||
}
|
} else if (!netdev_mc_empty(dev)) {
|
||||||
else if (!netdev_mc_empty(dev)) {
|
|
||||||
IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__);
|
IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__);
|
||||||
/* Walk the address list, and load the filter */
|
/* Walk the address list, and load the filter */
|
||||||
/* hardware_set_filter(dev->mc_list); */
|
/* hardware_set_filter(dev->mc_list); */
|
||||||
|
|
||||||
irlan_set_multicast_filter(self, TRUE);
|
irlan_set_multicast_filter(self, TRUE);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
IRDA_DEBUG(4, "%s(), Clearing multicast filter\n", __func__);
|
IRDA_DEBUG(4, "%s(), Clearing multicast filter\n", __func__);
|
||||||
irlan_set_multicast_filter(self, FALSE);
|
irlan_set_multicast_filter(self, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue