Browse Source

qcacld-3.0: Remove pConfig from wlan_hdd_set_mc_rate()

As a result of configuration convergence the local variable pConfig in
wlan_hdd_set_mc_rate() is assigned but never dereferenced. Since this
is obsolete, remove it.

Change-Id: I8f23fe4ce89a0946e9a3a307fa8451646f0c76d6
CRs-Fixed: 2405775
Jeff Johnson 6 năm trước cách đây
mục cha
commit
2a854d565e
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      core/hdd/src/wlan_hdd_ioctl.c

+ 0 - 2
core/hdd/src/wlan_hdd_ioctl.c

@@ -2726,7 +2726,6 @@ int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int targetRate)
 	tSirRateUpdateInd rateUpdate = {0};
 	QDF_STATUS status;
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
-	struct hdd_config *pConfig;
 	bool bval = false;
 
 	if (hdd_ctx == NULL) {
@@ -2742,7 +2741,6 @@ int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int targetRate)
 		hdd_err("SETMCRATE cmd is allowed only in STA, IBSS or SOFTAP mode");
 		return -EINVAL;
 	}
-	pConfig = hdd_ctx->config;
 
 	status = ucfg_mlme_get_vht_enable2x2(hdd_ctx->psoc, &bval);
 	if (!QDF_IS_STATUS_SUCCESS(status)) {