Commit 559990c6 authored by Mithlesh Thukral's avatar Mithlesh Thukral Committed by Greg Kroah-Hartman

Staging: sxg: Cleanup the SXG driver of unused space and functions

Miscellaneous cleanups.
* Removed unwanted spaces/lines.
* Removed unused functions.
Signed-off-by: default avatarLinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: default avatarMithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b62a294f
...@@ -137,7 +137,6 @@ void sxg_collect_statistics(struct adapter_t *adapter); ...@@ -137,7 +137,6 @@ void sxg_collect_statistics(struct adapter_t *adapter);
#if XXXTODO #if XXXTODO
static int sxg_mac_set_address(struct net_device *dev, void *ptr); static int sxg_mac_set_address(struct net_device *dev, void *ptr);
static void sxg_unmap_mmio_space(struct adapter_t *adapter);
#endif #endif
static void sxg_mcast_set_list(struct net_device *dev); static void sxg_mcast_set_list(struct net_device *dev);
...@@ -3218,35 +3217,17 @@ static void sxg_mcast_set_list(struct net_device *dev) ...@@ -3218,35 +3217,17 @@ static void sxg_mcast_set_list(struct net_device *dev)
struct adapter_t *adapter = (struct adapter_t *) netdev_priv(dev); struct adapter_t *adapter = (struct adapter_t *) netdev_priv(dev);
ASSERT(adapter); ASSERT(adapter);
if (dev->flags & IFF_PROMISC) { if (dev->flags & IFF_PROMISC)
adapter->MacFilter |= MAC_PROMISC; adapter->MacFilter |= MAC_PROMISC;
}
if (dev->flags & IFF_MULTICAST) if (dev->flags & IFF_MULTICAST)
adapter->MacFilter |= MAC_MCAST; adapter->MacFilter |= MAC_MCAST;
if (dev->flags & IFF_ALLMULTI)
if (dev->flags & IFF_ALLMULTI) {
adapter->MacFilter |= MAC_ALLMCAST; adapter->MacFilter |= MAC_ALLMCAST;
}
//XXX handle other flags as well //XXX handle other flags as well
sxg_set_mcast_addr(adapter); sxg_set_mcast_addr(adapter);
} }
#if XXXTODO
static void sxg_unmap_mmio_space(struct adapter_t *adapter)
{
#if LINUX_FREES_ADAPTER_RESOURCES
/*
* if (adapter->Regs) {
* iounmap(adapter->Regs);
* }
* adapter->slic_regs = NULL;
*/
#endif
}
#endif
void sxg_free_sgl_buffers(struct adapter_t *adapter) void sxg_free_sgl_buffers(struct adapter_t *adapter)
{ {
struct list_entry *ple; struct list_entry *ple;
......
...@@ -159,7 +159,6 @@ sxg_nic_get_strings(struct net_device *netdev, u32 stringset, u8 * data) ...@@ -159,7 +159,6 @@ sxg_nic_get_strings(struct net_device *netdev, u32 stringset, u8 * data)
switch(stringset) { switch(stringset) {
case ETH_SS_TEST: case ETH_SS_TEST:
/* return -EOPNOTSUPP; */
break; break;
case ETH_SS_STATS: case ETH_SS_STATS:
for (index = 0; index < SXG_NIC_STATS_LEN; index++) { for (index = 0; index < SXG_NIC_STATS_LEN; index++) {
...@@ -257,14 +256,6 @@ static void sxg_nic_get_regs(struct net_device *netdev, ...@@ -257,14 +256,6 @@ static void sxg_nic_get_regs(struct net_device *netdev,
memcpy((buff+sizeof(struct sxg_hw_regs)), UcodeRegs, sizeof(struct sxg_ucode_regs)); memcpy((buff+sizeof(struct sxg_hw_regs)), UcodeRegs, sizeof(struct sxg_ucode_regs));
} }
static void sxg_nic_get_wol(struct net_device *netdev,
struct ethtool_wolinfo *wol)
{
/* We dont support wake-on-lan */
wol->supported = 0;
memset(&wol->sopass, 0, sizeof(wol->sopass));
}
static int sxg_nic_get_eeprom_len(struct net_device *netdev) static int sxg_nic_get_eeprom_len(struct net_device *netdev)
{ {
return (USER_VIEWABLE_EEPROM_SIZE); return (USER_VIEWABLE_EEPROM_SIZE);
...@@ -315,10 +306,9 @@ struct ethtool_ops sxg_nic_ethtool_ops = { ...@@ -315,10 +306,9 @@ struct ethtool_ops sxg_nic_ethtool_ops = {
.get_regs_len = sxg_nic_get_regs_len, .get_regs_len = sxg_nic_get_regs_len,
.get_regs = sxg_nic_get_regs, .get_regs = sxg_nic_get_regs,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_wol = sxg_nic_get_wol, // .get_wol = sxg_nic_get_wol,
.get_eeprom_len = sxg_nic_get_eeprom_len, .get_eeprom_len = sxg_nic_get_eeprom_len,
.get_eeprom = sxg_nic_get_eeprom, .get_eeprom = sxg_nic_get_eeprom,
// .get_ringparam = sxg_nic_get_ringparam,
// .get_pauseparam = sxg_nic_get_pauseparam, // .get_pauseparam = sxg_nic_get_pauseparam,
// .set_pauseparam = sxg_nic_set_pauseparam, // .set_pauseparam = sxg_nic_set_pauseparam,
.set_tx_csum = ethtool_op_set_tx_csum, .set_tx_csum = ethtool_op_set_tx_csum,
......
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