Parcourir la source

qcacld-3.0: Rename HDD identifier pLinkSpeed

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

Change-Id: I04db9da2cba615d9a216a9eab40d1a07c73c33fb
CRs-Fixed: 2417587
Jeff Johnson il y a 6 ans
Parent
commit
21451ae241
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      core/hdd/src/wlan_hdd_hostapd_wext.c
  2. 2 2
      core/hdd/src/wlan_hdd_wext.c

+ 2 - 2
core/hdd/src/wlan_hdd_hostapd_wext.c

@@ -2434,7 +2434,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
 {
 	struct hdd_adapter *adapter = (netdev_priv(dev));
 	struct hdd_context *hdd_ctx;
-	char *pLinkSpeed = (char *)extra;
+	char *out_link_speed = (char *)extra;
 	uint32_t link_speed = 0;
 	int len = sizeof(uint32_t) + 1;
 	struct qdf_mac_addr mac_address;
@@ -2507,7 +2507,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
 	/* linkspeed in units of 500 kbps */
 	link_speed = link_speed / 500;
 	wrqu->data.length = len;
-	rc = snprintf(pLinkSpeed, len, "%u", link_speed);
+	rc = snprintf(out_link_speed, len, "%u", link_speed);
 	if ((rc < 0) || (rc >= len)) {
 		/* encoding or length error? */
 		hdd_err("Unable to encode link speed");

+ 2 - 2
core/hdd/src/wlan_hdd_wext.c

@@ -3707,7 +3707,7 @@ static int __iw_get_linkspeed(struct net_device *dev,
 			      union iwreq_data *wrqu, char *extra)
 {
 	struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
-	char *pLinkSpeed = (char *)extra;
+	char *out_link_speed = (char *)extra;
 	int len = sizeof(uint32_t) + 1;
 	uint32_t link_speed = 0;
 	struct hdd_context *hdd_ctx;
@@ -3731,7 +3731,7 @@ static int __iw_get_linkspeed(struct net_device *dev,
 
 	wrqu->data.length = len;
 	/* return the linkspeed as a string */
-	rc = snprintf(pLinkSpeed, len, "%u", link_speed);
+	rc = snprintf(out_link_speed, len, "%u", link_speed);
 	if ((rc < 0) || (rc >= len)) {
 		/* encoding or length error? */
 		hdd_err("Unable to encode link speed");