]> asedeno.scripts.mit.edu Git - linux.git/commit
i40evf: remove needless min_t() on num_online_cpus()*2
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 19 Apr 2017 13:25:56 +0000 (09:25 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 30 Apr 2017 11:50:18 +0000 (04:50 -0700)
commit789f38ca70e0b2848472aaf5f278aa3deabd4a4e
treed66e47409c626d694b3bc92bb52fed9313763752
parent0da36b9774cc24bac4bff446edf49f31aa98a282
i40evf: remove needless min_t() on num_online_cpus()*2

We already set pairs to the value of adapter->num_active_queues. This
value is limited by vsi_res->num_queue_pairs and num_online_cpus(). This
means that pairs by definition is already smaller than
num_online_cpus()*2, so we don't even need to bother with this check.

Lets just remove it and update the comment.

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/i40evf/i40evf_main.c