diff options
author | Sasha Neftin <sasha.neftin@intel.com> | 2018-10-25 03:06:18 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-11-07 12:47:01 -0500 |
commit | 920664a8f79084df50033f0ff26238d7d32dcede (patch) | |
tree | e1e8e622b94807be493c051b3516ea7cefa4af38 /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | e1f65b0d70e9e5c80e15105cd96fa00174d7c436 (diff) |
igc: Clean up code
Address few community comments.
Remove unused code, will be added per demand.
Remove blank lines and unneeded includes.
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 827eda044d97..d002055c0623 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c | |||
@@ -1700,20 +1700,6 @@ static bool igc_clean_tx_irq(struct igc_q_vector *q_vector, int napi_budget) | |||
1700 | } | 1700 | } |
1701 | 1701 | ||
1702 | /** | 1702 | /** |
1703 | * igc_ioctl - I/O control method | ||
1704 | * @netdev: network interface device structure | ||
1705 | * @ifreq: frequency | ||
1706 | * @cmd: command | ||
1707 | */ | ||
1708 | static int igc_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) | ||
1709 | { | ||
1710 | switch (cmd) { | ||
1711 | default: | ||
1712 | return -EOPNOTSUPP; | ||
1713 | } | ||
1714 | } | ||
1715 | |||
1716 | /** | ||
1717 | * igc_up - Open the interface and prepare it to handle traffic | 1703 | * igc_up - Open the interface and prepare it to handle traffic |
1718 | * @adapter: board private structure | 1704 | * @adapter: board private structure |
1719 | */ | 1705 | */ |
@@ -3445,7 +3431,6 @@ static const struct net_device_ops igc_netdev_ops = { | |||
3445 | .ndo_set_mac_address = igc_set_mac, | 3431 | .ndo_set_mac_address = igc_set_mac, |
3446 | .ndo_change_mtu = igc_change_mtu, | 3432 | .ndo_change_mtu = igc_change_mtu, |
3447 | .ndo_get_stats = igc_get_stats, | 3433 | .ndo_get_stats = igc_get_stats, |
3448 | .ndo_do_ioctl = igc_ioctl, | ||
3449 | }; | 3434 | }; |
3450 | 3435 | ||
3451 | /* PCIe configuration access */ | 3436 | /* PCIe configuration access */ |