]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: remove extraneous loop in i40e_vsi_wait_queues_disabled
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 5 Apr 2017 11:50:58 +0000 (07:50 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 8 Apr 2017 09:53:50 +0000 (02:53 -0700)
commit9c5689032e2a2a4341871bb8efaf3b388b0dab63
tree3fde02179ecee4fda8b725cb4b16a55d42f49da2
parent1b5222166939b3ffe89ef1c3ddd3f09db84d5510
i40e: remove extraneous loop in i40e_vsi_wait_queues_disabled

We can simply check both Tx and Rx queues in a single loop, rather than
repeating the loop twice.

Change-ID: Ic06f26b0e3c2620e0e33c1a2999edda488e647ad
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c