Prechádzať zdrojové kódy

qcacld-3.0: Rename HDD variable dataEnd

The Linux Coding Style frowns upon mixed-case names so rename HDD
local variable dataEnd to be compliant.

Change-Id: If3f44f677eb14849b0935463f7fa0d05565028b3
CRs-Fixed: 2407326
Jeff Johnson 6 rokov pred
rodič
commit
aae00aed24
1 zmenil súbory, kde vykonal 9 pridanie a 9 odobranie
  1. 9 9
      core/hdd/src/wlan_hdd_ioctl.c

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

@@ -547,7 +547,7 @@ hdd_parse_send_action_frame_v1_data(const uint8_t *command,
 				    uint8_t **buf, uint8_t *buf_len)
 {
 	const uint8_t *in_ptr = command;
-	const uint8_t *dataEnd;
+	const uint8_t *end_ptr;
 	int tempInt;
 	int j = 0;
 	int i = 0;
@@ -596,11 +596,11 @@ hdd_parse_send_action_frame_v1_data(const uint8_t *command,
 		return -EINVAL;
 
 	/* find the length of data */
-	dataEnd = in_ptr;
-	while (('\0' != *dataEnd))
-		dataEnd++;
+	end_ptr = in_ptr;
+	while (('\0' != *end_ptr))
+		end_ptr++;
 
-	*buf_len = dataEnd - in_ptr;
+	*buf_len = end_ptr - in_ptr;
 	if (*buf_len <= 0)
 		return -EINVAL;
 
@@ -2664,7 +2664,7 @@ static int hdd_parse_get_cckm_ie(uint8_t *command, uint8_t **cckm_ie,
 				 uint8_t *cckm_ie_len)
 {
 	uint8_t *in_ptr = command;
-	uint8_t *dataEnd;
+	uint8_t *end_ptr;
 	int j = 0;
 	int i = 0;
 	uint8_t tempByte = 0;
@@ -2684,9 +2684,9 @@ static int hdd_parse_get_cckm_ie(uint8_t *command, uint8_t **cckm_ie,
 		return -EINVAL;
 
 	/* find the length of data */
-	dataEnd = in_ptr;
-	while (('\0' != *dataEnd)) {
-		dataEnd++;
+	end_ptr = in_ptr;
+	while (('\0' != *end_ptr)) {
+		end_ptr++;
 		++(*cckm_ie_len);
 	}
 	if (*cckm_ie_len <= 0)