diff options
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index b705ad3a53a7..99f24f5cac53 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -103,8 +103,6 @@ jme_mdio_write(struct net_device *netdev, | |||
103 | 103 | ||
104 | if (i == 0) | 104 | if (i == 0) |
105 | jeprintk(jme->pdev, "phy(%d) write timeout : %d\n", phy, reg); | 105 | jeprintk(jme->pdev, "phy(%d) write timeout : %d\n", phy, reg); |
106 | |||
107 | return; | ||
108 | } | 106 | } |
109 | 107 | ||
110 | static inline void | 108 | static inline void |
@@ -130,8 +128,6 @@ jme_reset_phy_processor(struct jme_adapter *jme) | |||
130 | jme_mdio_write(jme->dev, | 128 | jme_mdio_write(jme->dev, |
131 | jme->mii_if.phy_id, | 129 | jme->mii_if.phy_id, |
132 | MII_BMCR, val | BMCR_RESET); | 130 | MII_BMCR, val | BMCR_RESET); |
133 | |||
134 | return; | ||
135 | } | 131 | } |
136 | 132 | ||
137 | static void | 133 | static void |
@@ -2010,12 +2006,12 @@ jme_set_multi(struct net_device *netdev) | |||
2010 | } else if (netdev->flags & IFF_ALLMULTI) { | 2006 | } else if (netdev->flags & IFF_ALLMULTI) { |
2011 | jme->reg_rxmcs |= RXMCS_ALLMULFRAME; | 2007 | jme->reg_rxmcs |= RXMCS_ALLMULFRAME; |
2012 | } else if (netdev->flags & IFF_MULTICAST) { | 2008 | } else if (netdev->flags & IFF_MULTICAST) { |
2013 | struct dev_mc_list *mclist; | 2009 | struct netdev_hw_addr *ha; |
2014 | int bit_nr; | 2010 | int bit_nr; |
2015 | 2011 | ||
2016 | jme->reg_rxmcs |= RXMCS_MULFRAME | RXMCS_MULFILTERED; | 2012 | jme->reg_rxmcs |= RXMCS_MULFRAME | RXMCS_MULFILTERED; |
2017 | netdev_for_each_mc_addr(mclist, netdev) { | 2013 | netdev_for_each_mc_addr(ha, netdev) { |
2018 | bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) & 0x3F; | 2014 | bit_nr = ether_crc(ETH_ALEN, ha->addr) & 0x3F; |
2019 | mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); | 2015 | mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); |
2020 | } | 2016 | } |
2021 | 2017 | ||
@@ -2839,7 +2835,7 @@ jme_init_one(struct pci_dev *pdev, | |||
2839 | default: | 2835 | default: |
2840 | jme->reg_txcs = TXCS_DEFAULT | TXCS_DMASIZE_512B; | 2836 | jme->reg_txcs = TXCS_DEFAULT | TXCS_DMASIZE_512B; |
2841 | break; | 2837 | break; |
2842 | }; | 2838 | } |
2843 | 2839 | ||
2844 | /* | 2840 | /* |
2845 | * Must check before reset_mac_processor | 2841 | * Must check before reset_mac_processor |