diff options
| author | Andre Guedes <[email protected]> | 2020-04-24 20:16:06 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2020-05-21 23:19:07 +0000 |
| commit | 4d0710c241dddf0db62b4be533347d3acd9e8c96 (patch) | |
| tree | 1debc120da30920ef4e68ba697d2b5f8e499cfce /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | igc: Remove unused field from igc_nfc_filter (diff) | |
| download | kernel-4d0710c241dddf0db62b4be533347d3acd9e8c96.tar.gz kernel-4d0710c241dddf0db62b4be533347d3acd9e8c96.zip | |
igc: Get rid of igc_max_channels()
The local function igc_max_channels() is a pointless wrapper around
igc_get_max_rss_queues(). This patch removes it and updates the callers
accordingly. It also does some cleanup on igc_get_max_rss_queues().
Signed-off-by: Andre Guedes <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 398a9307af2b..843e8a2aaf24 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -2731,12 +2731,7 @@ void igc_set_flag_queue_pairs(struct igc_adapter *adapter, unsigned int igc_get_max_rss_queues(struct igc_adapter *adapter) { - unsigned int max_rss_queues; - - /* Determine the maximum number of RSS queues supported. */ - max_rss_queues = IGC_MAX_RX_QUEUES; - - return max_rss_queues; + return IGC_MAX_RX_QUEUES; } static void igc_init_queue_configuration(struct igc_adapter *adapter) |
