Files
linux/drivers/net/ethernet/qlogic/qed
Tom Rix 3acc8788fe qed: return status of qed_iov_get_link
[ Upstream commit d9dc0c84ad ]

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: 73390ac9d8 ("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>
2022-03-16 14:23:37 +01:00
..
2021-06-03 14:04:17 -07:00
2020-06-30 15:51:40 -07:00
2021-06-03 14:04:17 -07:00
2020-06-30 15:51:40 -07:00
2020-06-30 15:51:40 -07:00
2021-08-16 11:22:57 +01:00
2021-09-10 10:17:11 +01:00
2020-06-30 15:51:40 -07:00
2020-06-30 15:51:40 -07:00
2021-07-29 15:41:06 +01:00