mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 08:46:43 +07:00
qlcnic: Fix sparse warnings.
warning: 'pf_info.max_tx_ques' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f1a094a830
commit
0c453de6d5
@ -156,6 +156,7 @@ static int qlcnic_sriov_get_pf_info(struct qlcnic_adapter *adapter,
|
||||
npar_info->max_local_ipv6_addrs = LSW(cmd.rsp.arg[8]);
|
||||
npar_info->max_remote_ipv6_addrs = MSW(cmd.rsp.arg[8]);
|
||||
|
||||
qlcnic_sriov_pf_set_ff_max_res(adapter, npar_info);
|
||||
dev_info(&adapter->pdev->dev,
|
||||
"\n\ttotal_pf: %d,\n"
|
||||
"\n\ttotal_rss_engines: %d max_vports: %d max_tx_ques %d,\n"
|
||||
@ -376,8 +377,6 @@ static int qlcnic_sriov_pf_init(struct qlcnic_adapter *adapter)
|
||||
if (err)
|
||||
goto delete_vport;
|
||||
|
||||
qlcnic_sriov_pf_set_ff_max_res(adapter, &pf_info);
|
||||
|
||||
err = qlcnic_get_nic_info(adapter, &nic_info, func);
|
||||
if (err)
|
||||
goto delete_vport;
|
||||
|
Loading…
Reference in New Issue
Block a user