projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50d575
)
i40e: remove logically dead code
author
Lihong Yang
<
[email protected]
>
Thu, 27 Jul 2017 10:17:09 +0000
(
03:17
-0700)
committer
Jeff Kirsher
<
[email protected]
>
Mon, 2 Oct 2017 19:46:35 +0000
(12:46 -0700)
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: Lihong Yang <
[email protected]
>
Tested-by: Andrew Bowers <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index a75396c157d953591ba2f8fea244c9bdd501d699..e6b95e1e1a337106c882a91408ee60987323ce52 100644
(file)
--- a/
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@
-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;