OrangePi_CM5/drivers/net/ethernet/qlogic/qed
Tom Rix 93223495bc 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: 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:15:57 +01:00
..
Makefile
…
qed.h
…
qed_chain.c
…
qed_cxt.c
…
qed_cxt.h
…
qed_dcbx.c
…
qed_dcbx.h
…
qed_debug.c
…
qed_debug.h
…
qed_dev.c
…
qed_dev_api.h
…
qed_devlink.c
…
qed_devlink.h
…
qed_fcoe.c
…
qed_fcoe.h
…
qed_hsi.h
…
qed_hw.c
…
qed_hw.h
…
qed_init_fw_funcs.c
…
qed_init_ops.c
…
qed_init_ops.h
…
qed_int.c
…
qed_int.h
…
qed_iscsi.c
…
qed_iscsi.h
…
qed_iwarp.c qed: rdma - don't wait for resources under hw error recovery flow 2021-09-30 10:11:03 +02:00
qed_iwarp.h
…
qed_l2.c
…
qed_l2.h
…
qed_ll2.c qed: qed ll2 race condition fixes 2021-09-03 10:09:27 +02:00
qed_ll2.h
…
qed_main.c qed: Fix missing error code in qed_slowpath_start() 2021-10-20 11:45:06 +02:00
qed_mcp.c qed: Handle management FW error 2021-09-22 12:27:58 +02:00
qed_mcp.h
…
qed_mng_tlv.c
…
qed_ooo.c
…
qed_ooo.h
…
qed_ptp.c
…
qed_ptp.h
…
qed_rdma.c qed: Fix null-pointer dereference in qed_rdma_create_qp() 2021-09-03 10:09:27 +02:00
qed_rdma.h
…
qed_reg_addr.h
…
qed_roce.c qed: rdma - don't wait for resources under hw error recovery flow 2021-09-30 10:11:03 +02:00
qed_roce.h
…
qed_selftest.c
…
qed_selftest.h
…
qed_sp.h
…
qed_sp_commands.c
…
qed_spq.c
…
qed_sriov.c qed: return status of qed_iov_get_link 2022-03-16 14:15:57 +01:00
qed_sriov.h
…
qed_vf.c net: qlogic: check the return value of dma_alloc_coherent() in qed_vf_hw_prepare() 2022-03-16 14:15:57 +01:00
qed_vf.h
…