summaryrefslogtreecommitdiff
path: root/drivers/ntb/msi.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2024-04-27 09:26:06 +0200
committerTony Nguyen <anthony.l.nguyen@intel.com>2024-04-30 09:33:07 -0700
commit6c8e355ea5fccf686703d71219f3b96ec7ec923f (patch)
tree211ee8ce26c38ed4c1c20763f2dc2763c904018a /drivers/ntb/msi.c
parent43f4466ca91debe63a07a80250282cf3210de1aa (diff)
downloadlinux-6c8e355ea5fccf686703d71219f3b96ec7ec923f.tar.gz
linux-6c8e355ea5fccf686703d71219f3b96ec7ec923f.tar.bz2
linux-6c8e355ea5fccf686703d71219f3b96ec7ec923f.zip
i40e: Consolidate checks whether given VSI is main
In the driver code there are 3 types of checks whether given VSI is main or not: 1. vsi->type ==/!= I40E_VSI_MAIN 2. vsi ==/!= pf->vsi[pf->lan_vsi] 3. vsi->seid ==/!= pf->vsi[pf->lan_vsi]->seid All of them are equivalent and can be consolidated. Convert cases 2 and 3 to case 1. Reviewed-by: Michal Schmidt <mschmidt@redhat.com> Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> Signed-off-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/ntb/msi.c')
0 files changed, 0 insertions, 0 deletions