[Intel-wired-lan] [next PATCH S80-V3 11/11] i40e: use a local variable instead of calculating multiple times
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Sep 12 21:52:51 UTC 2017
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Thursday, September 7, 2017 5:06 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S80-V3 11/11] i40e: use a local variable
> instead of calculating multiple times
>
> From: Lihong Yang <lihong.yang at intel.com>
>
> 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 at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 20 +++++++-------------
> 1 file changed, 7 insertions(+), 13 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list