summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMateusz Palczewski <mateusz.palczewski@intel.com>2022-01-27 17:16:40 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-03-01 19:50:11 +0300
commit8fc16be67dbaf46d96dc96390c727bc76a12f07c (patch)
tree81106056c60a2f44a63a207ac31734fce4b2b299 /tools/perf/scripts/python
parentbae569d01a1f4929ce28093be80bbbbacbf1b127 (diff)
downloadlinux-8fc16be67dbaf46d96dc96390c727bc76a12f07c.tar.xz
iavf: Fix incorrect use of assigning iavf_status to int
Currently there are functions in iavf_virtchnl.c for polling specific virtchnl receive events. These are all assigning iavf_status values to int values. Fix this and explicitly assign int values if iavf_status is not IAVF_SUCCESS. Also, refactor a small amount of duplicated code that can be reused by all of the previously mentioned functions. Finally, fix some spacing errors for variable assignment and get rid of all the goto statements in the refactored functions for clarity. Signed-off-by: Brett Creeley <brett.creeley@intel.com> Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions