diff options
| author | Filip Sadowski <filip.sadowski@intel.com> | 2016-10-12 01:26:58 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-11-01 00:26:40 +0300 |
| commit | 3aa7b74dbeedfb32406fec70cfd76d797209e8c9 (patch) | |
| tree | 13fb4ab3a0938c2510d72688ee78cbf24a637198 /tools/perf/scripts/python | |
| parent | 81fa7c97bebd6e1a52c4e059eeffe18df5b3f11f (diff) | |
| download | linux-3aa7b74dbeedfb32406fec70cfd76d797209e8c9.tar.xz | |
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 <filip.sadowski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
