qcacmn: remove unused var in dp/wifi3.0/dp_main.c
remove unused var and declarations in dp/wifi3.0/dp_main.c CRs-Fixed: 3284798 Change-Id: I8c464cde66023bf195a2bb6fa00a1244d25f9898
This commit is contained in:

committed by
Madan Koyyalamudi

parent
afe07d8a36
commit
1eb9c1afb9
@@ -3916,13 +3916,13 @@ static QDF_STATUS dp_hw_link_desc_ring_alloc(struct dp_soc *soc)
|
|||||||
"wbm_idle_link_ring");
|
"wbm_idle_link_ring");
|
||||||
} else {
|
} else {
|
||||||
uint32_t num_scatter_bufs;
|
uint32_t num_scatter_bufs;
|
||||||
uint32_t num_entries_per_buf;
|
|
||||||
uint32_t buf_size = 0;
|
uint32_t buf_size = 0;
|
||||||
|
|
||||||
soc->wbm_idle_scatter_buf_size =
|
soc->wbm_idle_scatter_buf_size =
|
||||||
hal_idle_list_scatter_buf_size(soc->hal_soc);
|
hal_idle_list_scatter_buf_size(soc->hal_soc);
|
||||||
num_entries_per_buf = hal_idle_scatter_buf_num_entries(
|
hal_idle_scatter_buf_num_entries(
|
||||||
soc->hal_soc, soc->wbm_idle_scatter_buf_size);
|
soc->hal_soc,
|
||||||
|
soc->wbm_idle_scatter_buf_size);
|
||||||
num_scatter_bufs = hal_idle_list_num_scatter_bufs(
|
num_scatter_bufs = hal_idle_list_num_scatter_bufs(
|
||||||
soc->hal_soc, total_mem_size,
|
soc->hal_soc, total_mem_size,
|
||||||
soc->wbm_idle_scatter_buf_size);
|
soc->wbm_idle_scatter_buf_size);
|
||||||
@@ -9565,12 +9565,10 @@ void dp_rx_bar_stats_cb(struct dp_soc *soc, void *cb_ctxt,
|
|||||||
void dp_aggregate_vdev_stats(struct dp_vdev *vdev,
|
void dp_aggregate_vdev_stats(struct dp_vdev *vdev,
|
||||||
struct cdp_vdev_stats *vdev_stats)
|
struct cdp_vdev_stats *vdev_stats)
|
||||||
{
|
{
|
||||||
struct dp_soc *soc = NULL;
|
|
||||||
|
|
||||||
if (!vdev || !vdev->pdev)
|
if (!vdev || !vdev->pdev)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
soc = vdev->pdev->soc;
|
|
||||||
|
|
||||||
dp_update_vdev_ingress_stats(vdev);
|
dp_update_vdev_ingress_stats(vdev);
|
||||||
|
|
||||||
@@ -15491,7 +15489,6 @@ static struct dp_soc *
|
|||||||
dp_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
|
dp_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
|
||||||
struct cdp_soc_attach_params *params)
|
struct cdp_soc_attach_params *params)
|
||||||
{
|
{
|
||||||
int int_ctx;
|
|
||||||
struct dp_soc *soc = NULL;
|
struct dp_soc *soc = NULL;
|
||||||
uint16_t arch_id;
|
uint16_t arch_id;
|
||||||
struct hif_opaque_softc *hif_handle = params->hif_handle;
|
struct hif_opaque_softc *hif_handle = params->hif_handle;
|
||||||
@@ -15520,7 +15517,6 @@ dp_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
|
|||||||
&soc->cmem_base,
|
&soc->cmem_base,
|
||||||
&soc->cmem_total_size);
|
&soc->cmem_total_size);
|
||||||
soc->cmem_avail_size = soc->cmem_total_size;
|
soc->cmem_avail_size = soc->cmem_total_size;
|
||||||
int_ctx = 0;
|
|
||||||
soc->device_id = device_id;
|
soc->device_id = device_id;
|
||||||
soc->cdp_soc.ops =
|
soc->cdp_soc.ops =
|
||||||
(struct cdp_ops *)qdf_mem_malloc(sizeof(struct cdp_ops));
|
(struct cdp_ops *)qdf_mem_malloc(sizeof(struct cdp_ops));
|
||||||
@@ -16884,7 +16880,7 @@ static QDF_STATUS dp_soc_srng_alloc(struct dp_soc *soc)
|
|||||||
uint32_t i;
|
uint32_t i;
|
||||||
struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx;
|
struct wlan_cfg_dp_soc_ctxt *soc_cfg_ctx;
|
||||||
uint32_t cached = WLAN_CFG_DST_RING_CACHED_DESC;
|
uint32_t cached = WLAN_CFG_DST_RING_CACHED_DESC;
|
||||||
uint32_t tx_comp_ring_size, tx_ring_size, reo_dst_ring_size;
|
uint32_t reo_dst_ring_size;
|
||||||
|
|
||||||
soc_cfg_ctx = soc->wlan_cfg_ctx;
|
soc_cfg_ctx = soc->wlan_cfg_ctx;
|
||||||
|
|
||||||
@@ -16945,8 +16941,6 @@ static QDF_STATUS dp_soc_srng_alloc(struct dp_soc *soc)
|
|||||||
goto fail1;
|
goto fail1;
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_comp_ring_size = wlan_cfg_tx_comp_ring_size(soc_cfg_ctx);
|
|
||||||
tx_ring_size = wlan_cfg_tx_ring_size(soc_cfg_ctx);
|
|
||||||
reo_dst_ring_size = wlan_cfg_get_reo_dst_ring_size(soc_cfg_ctx);
|
reo_dst_ring_size = wlan_cfg_get_reo_dst_ring_size(soc_cfg_ctx);
|
||||||
|
|
||||||
/* Disable cached desc if NSS offload is enabled */
|
/* Disable cached desc if NSS offload is enabled */
|
||||||
|
Reference in New Issue
Block a user