igb: Remove unnecessary flag setting in igb_set_flag_queue_pairs()
authorShota Suzuki <suzuki_shota_t3@lab.ntt.co.jp>
Fri, 11 Dec 2015 09:43:59 +0000 (18:43 +0900)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Feb 2016 00:09:39 +0000 (16:09 -0800)
commitceb27759987ec10ba22332bd7fdf1cfb35b86991
tree3eb4848d8d821de414409e0e5ffc1ec1fb34c2d2
parent667f00630ebefc4d73aa105c6ab254e4aec867f8
igb: Remove unnecessary flag setting in igb_set_flag_queue_pairs()

If VFs are enabled (max_vfs >= 1), both max_rss_queues and
adapter->rss_queues are set to 2 in the case of e1000_82576.
In this case, IGB_FLAG_QUEUE_PAIRS is always set in the default block as a
result of fall-through, thus setting it in the e1000_82576 block is not
necessary.

Signed-off-by: Shota Suzuki <suzuki_shota_t3@lab.ntt.co.jp>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c