Commit be265e9b authored by Jon Mason's avatar Jon Mason Committed by David S. Miller

s2io: remove unused code

usr_addrs is never referenced outside the initial struct population
during open, thus making it unnecessary.  Remove it, the code that
references it, and the struct that it is the only user of.
Signed-off-by: default avatarJon Mason <jon.mason@exar.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent baeb2ffa
...@@ -5124,8 +5124,6 @@ static void s2io_set_multicast(struct net_device *dev) ...@@ -5124,8 +5124,6 @@ static void s2io_set_multicast(struct net_device *dev)
/* Create the new Rx filter list and update the same in H/W. */ /* Create the new Rx filter list and update the same in H/W. */
i = 0; i = 0;
netdev_for_each_mc_addr(ha, dev) { netdev_for_each_mc_addr(ha, dev) {
memcpy(sp->usr_addrs[i].addr, ha->addr,
ETH_ALEN);
mac_addr = 0; mac_addr = 0;
for (j = 0; j < ETH_ALEN; j++) { for (j = 0; j < ETH_ALEN; j++) {
mac_addr |= ha->addr[j]; mac_addr |= ha->addr[j];
......
...@@ -816,12 +816,6 @@ struct mac_info { ...@@ -816,12 +816,6 @@ struct mac_info {
struct stat_block *stats_info; /* Logical address of the stat block */ struct stat_block *stats_info; /* Logical address of the stat block */
}; };
/* structure representing the user defined MAC addresses */
struct usr_addr {
char addr[ETH_ALEN];
int usage_cnt;
};
/* Default Tunable parameters of the NIC. */ /* Default Tunable parameters of the NIC. */
#define DEFAULT_FIFO_0_LEN 4096 #define DEFAULT_FIFO_0_LEN 4096
#define DEFAULT_FIFO_1_7_LEN 512 #define DEFAULT_FIFO_1_7_LEN 512
...@@ -894,9 +888,7 @@ struct s2io_nic { ...@@ -894,9 +888,7 @@ struct s2io_nic {
#define ALL_MULTI 2 #define ALL_MULTI 2
#define MAX_ADDRS_SUPPORTED 64 #define MAX_ADDRS_SUPPORTED 64
u16 usr_addr_count;
u16 mc_addr_count; u16 mc_addr_count;
struct usr_addr usr_addrs[256];
u16 m_cast_flg; u16 m_cast_flg;
u16 all_multi_pos; u16 all_multi_pos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment