Commit cfe39699 authored by Martyna Szapar's avatar Martyna Szapar Committed by Jeff Kirsher

i40e: static analysis report from community

Static analysis tools report a problem from original driver submission.
Removing unnecessary check in condition.
Signed-off-by: default avatarMartyna Szapar <martyna.szapar@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent a4e0109a
...@@ -13033,7 +13033,7 @@ struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 flags, ...@@ -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++) for (vsi_idx = 0; vsi_idx < pf->num_alloc_vsi; vsi_idx++)
if (pf->vsi[vsi_idx] && pf->vsi[vsi_idx]->seid == vsi_seid) if (pf->vsi[vsi_idx] && pf->vsi[vsi_idx]->seid == vsi_seid)
break; 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", dev_info(&pf->pdev->dev, "vsi seid %d not found\n",
vsi_seid); vsi_seid);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment