mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 15:45:09 +07:00
i40e: static analysis report from community
Static analysis tools report a problem from original driver submission. Removing unnecessary check in condition. Signed-off-by: Martyna Szapar <martyna.szapar@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
a4e0109a19
commit
cfe396991a
@ -13033,7 +13033,7 @@ struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 flags,
|
||||
for (vsi_idx = 0; vsi_idx < pf->num_alloc_vsi; vsi_idx++)
|
||||
if (pf->vsi[vsi_idx] && pf->vsi[vsi_idx]->seid == vsi_seid)
|
||||
break;
|
||||
if (vsi_idx >= pf->num_alloc_vsi && vsi_seid != 0) {
|
||||
if (vsi_idx == pf->num_alloc_vsi && vsi_seid != 0) {
|
||||
dev_info(&pf->pdev->dev, "vsi seid %d not found\n",
|
||||
vsi_seid);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user