Преглед изворни кода

qcacld-3.0: Rename HDD variable nOpportunisticThresholdDiff

The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename HDD local variable
nOpportunisticThresholdDiff to be compliant.

Change-Id: Ic337d3b31f946bf465474c866ba279ebc465fee2
CRs-Fixed: 2408524
Jeff Johnson пре 6 година
родитељ
комит
8e3ca4c974
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      core/hdd/src/wlan_hdd_ioctl.c

+ 5 - 5
core/hdd/src/wlan_hdd_ioctl.c

@@ -4072,14 +4072,14 @@ static int drv_cmd_set_opportunistic_rssi_diff(struct hdd_adapter *adapter,
 {
 	int ret = 0;
 	uint8_t *value = command;
-	uint8_t nOpportunisticThresholdDiff =
+	uint8_t diff =
 		cfg_default(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF);
 
 	/* Move pointer to ahead of SETOPPORTUNISTICRSSIDIFF<delimiter> */
 	value = value + command_len + 1;
 
 	/* Convert the value from ascii to integer */
-	ret = kstrtou8(value, 10, &nOpportunisticThresholdDiff);
+	ret = kstrtou8(value, 10, &diff);
 	if (ret < 0) {
 		/*
 		 * If the input value is greater than max value of datatype,
@@ -4091,11 +4091,11 @@ static int drv_cmd_set_opportunistic_rssi_diff(struct hdd_adapter *adapter,
 	}
 
 	hdd_debug("Received Command to Set Opportunistic Threshold diff = %d",
-		  nOpportunisticThresholdDiff);
+		  diff);
 
 	sme_set_roam_opportunistic_scan_threshold_diff(hdd_ctx->mac_handle,
-				adapter->vdev_id,
-				nOpportunisticThresholdDiff);
+						       adapter->vdev_id,
+						       diff);
 
 exit:
 	return ret;