diff options
author | 2022-03-05 07:06:42 -0800 | |
---|---|---|
committer | 2022-03-07 12:22:28 +0000 | |
commit | d9dc0c84ad2d4cc911ba252c973d1bf18d5eb9cf (patch) | |
tree | ee4514b2448203c4ee5800cdd943abe59c3dd340 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ethernet: sun: Free the coherent when failing in probing (diff) | |
download | linux-dev-d9dc0c84ad2d4cc911ba252c973d1bf18d5eb9cf.tar.xz linux-dev-d9dc0c84ad2d4cc911ba252c973d1bf18d5eb9cf.zip |
qed: return status of qed_iov_get_link
Clang static analysis reports this issue
qed_sriov.c:4727:19: warning: Assigned value is
garbage or undefined
ivi->max_tx_rate = tx_rate ? tx_rate : link.speed;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
link is only sometimes set by the call to qed_iov_get_link()
qed_iov_get_link fails without setting link or returning
status. So change the decl to return status.
Fixes: 73390ac9d82b ("qed*: support ndo_get_vf_config")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions