From 7d63adb74131f9b7086718a2a237f355435441cd Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 29 May 2018 15:05:21 -0700 Subject: [PATCH] qcacld-3.0: Remove pVContext from struct _cds_sched_context The pVContext field of struct _cds_sched_context is written but never read, hence it is unused, so remove it. Change-Id: I38a6491fb8581df00af59f7f2bc3f5f88c65b7e5 CRs-Fixed: 2250668 --- core/cds/inc/cds_sched.h | 2 -- core/cds/src/cds_sched.c | 1 - 2 files changed, 3 deletions(-) diff --git a/core/cds/inc/cds_sched.h b/core/cds/inc/cds_sched.h index 7c1da20e0d..a1fea256bf 100644 --- a/core/cds/inc/cds_sched.h +++ b/core/cds/inc/cds_sched.h @@ -94,8 +94,6 @@ struct cds_ol_rx_pkt { ** */ typedef struct _cds_sched_context { - /* Place holder to the CDS Context */ - void *pVContext; #ifdef QCA_CONFIG_SMP spinlock_t ol_rx_thread_lock; diff --git a/core/cds/src/cds_sched.c b/core/cds/src/cds_sched.c index 30e1d7052a..1a55277e15 100644 --- a/core/cds/src/cds_sched.c +++ b/core/cds/src/cds_sched.c @@ -444,7 +444,6 @@ QDF_STATUS cds_sched_open(void *p_cds_context, return QDF_STATUS_E_INVAL; } qdf_mem_zero(pSchedContext, sizeof(cds_sched_context)); - pSchedContext->pVContext = p_cds_context; #ifdef QCA_CONFIG_SMP spin_lock_init(&pSchedContext->ol_rx_thread_lock); init_waitqueue_head(&pSchedContext->ol_rx_wait_queue);