[Intel-wired-lan] [next PATCH S51-V2 4/8] i40e: remove second check of VLAN_N_VID in i40e_vlan_rx_add_vid

Bowers, AndrewX andrewx.bowers at intel.com
Wed Oct 26 22:09:28 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Bimmy Pujari
> Sent: Tuesday, October 25, 2016 4:09 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S51-V2 4/8] i40e: remove second
> check of VLAN_N_VID in i40e_vlan_rx_add_vid
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> Replace a check of magic number 4095 with VLAN_N_VID. This makes it
> obvious that a later check against VLAN_N_VID is always true and can be
> removed.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Change-ID: I28998f127a61a529480ce63d8a07e266f6c63b7b
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list