Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5872866e authored by Lihong Yang's avatar Lihong Yang Committed by Jeff Kirsher
Browse files

i40e: remove logically dead code



This patch removes the !vf condition check that cannot be
true in i40e_ndo_set_vf_trust function

Detected by CoverityScan, CID 1397531 Logically dead code

Signed-off-by: default avatarLihong Yang <lihong.yang@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e50d5751
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3354,8 +3354,6 @@ int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting)

	vf = &pf->vf[vf_id];

	if (!vf)
		return -EINVAL;
	if (setting == vf->trusted)
		goto out;