diff options
| author | Filip Sadowski <[email protected]> | 2016-10-11 15:26:58 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2016-10-31 14:26:40 -0700 |
| commit | 3aa7b74dbeedfb32406fec70cfd76d797209e8c9 (patch) | |
| tree | 13fb4ab3a0938c2510d72688ee78cbf24a637198 /tools/perf/scripts/python/bin | |
| parent | 81fa7c97bebd6e1a52c4e059eeffe18df5b3f11f (diff) | |
i40e: removed unreachable code
Removed some of unnecessary if statements and unreachable code found by
static code analysis tool.
The return value of i40e_vsi_control_rings(..., false) is always 0. So,
test for non-zero will never be true. The function has been split into
"int i40e_vsi_start_rings()" and "void i40e_vsi_stop_rings()" for better
understanding.
Similarly, the function i40e_vsi_kill_vlan() never fails. So, checking
for return value is also unnecessary. Function definition changed to void.
The i40e_loopback_test() function is not implemented. The function and
all references to loopback testing were removed.
Change-ID: Id45cf66f6689ce2bc4e887de13f073e30e8431bd
Signed-off-by: Filip Sadowski <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions