aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skfp/skfddi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/skfp/skfddi.c')
-rw-r--r--drivers/net/skfp/skfddi.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c
index d9016b75abc2..31b2dabf094c 100644
--- a/drivers/net/skfp/skfddi.c
+++ b/drivers/net/skfp/skfddi.c
@@ -844,7 +844,6 @@ static void skfp_ctl_set_multicast_list(struct net_device *dev)
844 spin_lock_irqsave(&bp->DriverLock, Flags); 844 spin_lock_irqsave(&bp->DriverLock, Flags);
845 skfp_ctl_set_multicast_list_wo_lock(dev); 845 skfp_ctl_set_multicast_list_wo_lock(dev);
846 spin_unlock_irqrestore(&bp->DriverLock, Flags); 846 spin_unlock_irqrestore(&bp->DriverLock, Flags);
847 return;
848} // skfp_ctl_set_multicast_list 847} // skfp_ctl_set_multicast_list
849 848
850 849
@@ -852,7 +851,7 @@ static void skfp_ctl_set_multicast_list(struct net_device *dev)
852static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) 851static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev)
853{ 852{
854 struct s_smc *smc = netdev_priv(dev); 853 struct s_smc *smc = netdev_priv(dev);
855 struct dev_mc_list *dmi; 854 struct netdev_hw_addr *ha;
856 855
857 /* Enable promiscuous mode, if necessary */ 856 /* Enable promiscuous mode, if necessary */
858 if (dev->flags & IFF_PROMISC) { 857 if (dev->flags & IFF_PROMISC) {
@@ -876,13 +875,13 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev)
876 /* use exact filtering */ 875 /* use exact filtering */
877 876
878 // point to first multicast addr 877 // point to first multicast addr
879 netdev_for_each_mc_addr(dmi, dev) { 878 netdev_for_each_mc_addr(ha, dev) {
880 mac_add_multicast(smc, 879 mac_add_multicast(smc,
881 (struct fddi_addr *)dmi->dmi_addr, 880 (struct fddi_addr *)ha->addr,
882 1); 881 1);
883 882
884 pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n", 883 pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n",
885 dmi->dmi_addr); 884 ha->addr);
886 } 885 }
887 886
888 } else { // more MC addresses than HW supports 887 } else { // more MC addresses than HW supports
@@ -898,7 +897,6 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev)
898 /* Update adapter filters */ 897 /* Update adapter filters */
899 mac_update_multicast(smc); 898 mac_update_multicast(smc);
900 } 899 }
901 return;
902} // skfp_ctl_set_multicast_list_wo_lock 900} // skfp_ctl_set_multicast_list_wo_lock
903 901
904 902
@@ -1076,7 +1074,6 @@ static netdev_tx_t skfp_send_pkt(struct sk_buff *skb,
1076 if (bp->QueueSkb == 0) { 1074 if (bp->QueueSkb == 0) {
1077 netif_stop_queue(dev); 1075 netif_stop_queue(dev);
1078 } 1076 }
1079 dev->trans_start = jiffies;
1080 return NETDEV_TX_OK; 1077 return NETDEV_TX_OK;
1081 1078
1082} // skfp_send_pkt 1079} // skfp_send_pkt