diff options
author | Tom Rix <trix@redhat.com> | 2022-03-05 18:06:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-16 16:23:37 +0300 |
commit | 3acc8788febf0427b4069274f55234dcaa7ea2da (patch) | |
tree | 1d4763d4471a20f3936f30590a58e8ac1d273cd7 /drivers/video/Makefile | |
parent | e5d078d21fa0902b3b4a106456578a2f740d1aac (diff) | |
download | linux-3acc8788febf0427b4069274f55234dcaa7ea2da.tar.xz |
qed: return status of qed_iov_get_link
[ Upstream commit d9dc0c84ad2d4cc911ba252c973d1bf18d5eb9cf ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video/Makefile')
0 files changed, 0 insertions, 0 deletions