diff options
author | Lihong Yang <lihong.yang@intel.com> | 2017-09-07 08:05:56 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-09 14:38:04 -0700 |
commit | 9bcc07f0651b3078f1c3164c710f72a558665345 (patch) | |
tree | 6e80864541c7d0237388570a9716e605b5099463 /drivers/gpu/drm/i915/intel_runtime_pm.c | |
parent | 4988410f8d3a6fa04381072e2406a1d3979ffb95 (diff) |
i40e: use a local variable instead of calculating multiple times
The computed result of I40E_MAX_VSI_QP * I40E_VIRTCHNL_SUPPORTED_QTYPES
is used more than three times in function i40e_config_irq_link_list.
Simply declare a local variable to store it to improve readability.
Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
0 files changed, 0 insertions, 0 deletions