浏览代码

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
Jeff Johnson 7 年之前
父节点
当前提交
bb42a8ca1d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      core/dp/txrx/ol_rx.c

+ 0 - 2
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) {