diff options
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 3202f67d8785..babe53af7e86 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -698,7 +698,7 @@ static void be_set_multicast_list(struct net_device *netdev) | |||
698 | struct be_adapter *adapter = netdev_priv(netdev); | 698 | struct be_adapter *adapter = netdev_priv(netdev); |
699 | 699 | ||
700 | if (netdev->flags & IFF_PROMISC) { | 700 | if (netdev->flags & IFF_PROMISC) { |
701 | be_cmd_promiscuous_config(adapter, adapter->port_num, 1); | 701 | be_cmd_promiscuous_config(adapter, true); |
702 | adapter->promiscuous = true; | 702 | adapter->promiscuous = true; |
703 | goto done; | 703 | goto done; |
704 | } | 704 | } |
@@ -706,7 +706,7 @@ static void be_set_multicast_list(struct net_device *netdev) | |||
706 | /* BE was previously in promiscuous mode; disable it */ | 706 | /* BE was previously in promiscuous mode; disable it */ |
707 | if (adapter->promiscuous) { | 707 | if (adapter->promiscuous) { |
708 | adapter->promiscuous = false; | 708 | adapter->promiscuous = false; |
709 | be_cmd_promiscuous_config(adapter, adapter->port_num, 0); | 709 | be_cmd_promiscuous_config(adapter, false); |
710 | } | 710 | } |
711 | 711 | ||
712 | /* Enable multicast promisc if num configured exceeds what we support */ | 712 | /* Enable multicast promisc if num configured exceeds what we support */ |