aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorZhu Lingshan <[email protected]>2022-04-24 15:28:06 +0800
committerMichael S. Tsirkin <[email protected]>2022-05-31 12:45:09 -0400
commitac33f84ba5ffcc6c8a4c3ee98c92f722feb64f43 (patch)
tree6cf9bcafa1e47e7786009bf7b02b138606e64ba0 /tools/perf/scripts/python/bin/stackcollapse-record
parentffbda8e9df10d1784d5427ec199e7d8308e3763f (diff)
vDPA/ifcvf: fix uninitialized config_vector warning
Static checkers are not informed that config_vector is controlled by vf->msix_vector_status, which can only be MSIX_VECTOR_SHARED_VQ_AND_CONFIG, MSIX_VECTOR_SHARED_VQ_AND_CONFIG and MSIX_VECTOR_DEV_SHARED. This commit uses an "if...elseif...else" code block to tell the checkers that it is a complete set, and config_vector can be initialized anyway Signed-off-by: Zhu Lingshan <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions