From bb42a8ca1d4a5ec0ce3acfde1a5cbb08d773aa0b Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 31 Aug 2017 10:26:42 -0700 Subject: [PATCH] qcacld-3.0: Remove unnecessary get of global context in TXRX Currently ol_rx_pkt_dump_call() calls cds_get_global_context() to get the global context. At one time this was necessary since the global context was required to get the module-specific context. However the global context is no longer required, so remove the unnecessary retrieval of the global context. Change-Id: I8a2e66252bfd445151575502b06b132866a286fe CRs-Fixed: 2102494 --- core/dp/txrx/ol_rx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/dp/txrx/ol_rx.c b/core/dp/txrx/ol_rx.c index 94239314cbf3..393f3e2ce60a 100644 --- a/core/dp/txrx/ol_rx.c +++ b/core/dp/txrx/ol_rx.c @@ -1558,12 +1558,10 @@ void ol_rx_pkt_dump_call( uint8_t peer_id, uint8_t status) { - v_CONTEXT_t vos_context; ol_txrx_pdev_handle pdev; struct ol_txrx_peer_t *peer = NULL; tp_ol_packetdump_cb packetdump_cb; - vos_context = cds_get_global_context(); pdev = cds_get_context(QDF_MODULE_ID_TXRX); if (!pdev) {