ice: refactor ice_vsi_is_vlan_pruning_ena
authorJan Sokolowski <jan.sokolowski@intel.com>
Wed, 9 Aug 2023 13:39:13 +0000 (15:39 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 17 Aug 2023 20:59:45 +0000 (13:59 -0700)
commite528e5b237550b9c9f738a7e56174e5195c925d3
tree7d9d2cc6ccca507190cf8f28844bc36d785d4522
parentcae48047052f3baec0fbc0ebf498b19c72753294
ice: refactor ice_vsi_is_vlan_pruning_ena

As this method became static, and is already called
with check for vsi being non-null, an unnecessary check along
with superfluous parentheses is removed.

Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c